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
master
poornas 7 years ago committed by Nitish Tiwari
parent 5a7ab7b06e
commit af024a9c69
  1. 6
      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 {

Loading…
Cancel
Save