mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
XL/fs: DeleteVol should not return error cleaning multipart dir for errVolumeNotFound (#2188)
This commit is contained in:
parent
0fddf3fe17
commit
5cd629adca
2
fs-v1.go
2
fs-v1.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…
Reference in New Issue
Block a user