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

@@ -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)