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

master
Anis Elleuch 8 years ago committed by Harshavardhana
parent 0fddf3fe17
commit 5cd629adca
  1. 2
      fs-v1.go
  2. 2
      xl-v1-bucket.go

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

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

Loading…
Cancel
Save