mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Protect multipart directory from removing when it is empty (#3315)
This commit is contained in:
committed by
Harshavardhana
parent
dd93f808c8
commit
339c9019b9
@@ -17,7 +17,6 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"path"
|
||||
"sort"
|
||||
"sync"
|
||||
)
|
||||
@@ -271,7 +270,7 @@ func (xl xlObjects) DeleteBucket(bucket string) error {
|
||||
return
|
||||
}
|
||||
// Cleanup all the previously incomplete multiparts.
|
||||
err = cleanupDir(disk, path.Join(minioMetaBucket, mpartMetaPrefix), bucket)
|
||||
err = cleanupDir(disk, minioMetaMultipartBucket, bucket)
|
||||
if err != nil {
|
||||
if errorCause(err) == errVolumeNotFound {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user