XL/fs: DeleteVol should not return error cleaning multipart dir for errVolumeNotFound (#2188)

This commit is contained in:
Anis Elleuch authored and Harshavardhana committed 2016-07-12 10:07:32 -07:00
1 parent 0fddf3fe17
commit 5cd629adca
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -204,7 +204,7 @@ func (fs fsObjects) DeleteBucket(bucket string) error {
return toObjectErr(err, bucket)
}
// Cleanup all the previously incomplete multiparts.
if err := cleanupDir(fs.storage, path.Join(minioMetaBucket, mpartMetaPrefix), bucket); err != nil {
if err := cleanupDir(fs.storage, path.Join(minioMetaBucket, mpartMetaPrefix), bucket); err != nil && err != errVolumeNotFound {
return toObjectErr(err, bucket)
}
return nil