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

This commit is contained in:
Anis Elleuch 2016-07-12 18:07:32 +01:00 committed by Harshavardhana
parent 0fddf3fe17
commit 5cd629adca
2 changed files with 2 additions and 2 deletions

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

View File

@ -247,7 +247,7 @@ func (xl xlObjects) DeleteBucket(bucket string) error {
}
// Cleanup all the previously incomplete multiparts.
err = cleanupDir(disk, path.Join(minioMetaBucket, mpartMetaPrefix), bucket)
if err != nil {
if err != nil && err != errVolumeNotFound {
dErrs[index] = err
}
}(index, disk)