From af024a9c69b4cbdbc073032826b56e0298a64d39 Mon Sep 17 00:00:00 2001 From: poornas Date: Wed, 28 Mar 2018 19:56:52 -0700 Subject: [PATCH] Remove deadcode related to multipart cleanup for fs (#5716) The cleanup code is no longer needed as we moved to lockfree multipart backend for fs --- cmd/fs-v1.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd/fs-v1.go b/cmd/fs-v1.go index c65bd3b94..909edc103 100644 --- a/cmd/fs-v1.go +++ b/cmd/fs-v1.go @@ -345,12 +345,6 @@ func (fs *FSObjects) DeleteBucket(ctx context.Context, bucket string) error { return toObjectErr(err, bucket) } - // Cleanup all the previously incomplete multiparts. - minioMetaMultipartBucketDir := pathJoin(fs.fsPath, minioMetaMultipartBucket, bucket) - if err = fsRemoveAll(minioMetaMultipartBucketDir); err != nil { - return toObjectErr(err, bucket) - } - // Cleanup all the bucket metadata. minioMetadataBucketDir := pathJoin(fs.fsPath, minioMetaBucket, bucketMetaPrefix, bucket) if err = fsRemoveAll(minioMetadataBucketDir); err != nil {