mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Add reliable RemoveAll to handle racy situations (#6227)
This commit is contained in:
committed by
Nitish Tiwari
parent
13fbb96736
commit
2dede2fdc2
@@ -80,10 +80,10 @@ func formatXLCleanupTmpLocalEndpoints(endpoints EndpointList) error {
|
||||
}
|
||||
return err
|
||||
}
|
||||
if err := os.RemoveAll(pathJoin(endpoint.Path, minioMetaTmpBucket)); err != nil {
|
||||
if err := removeAll(pathJoin(endpoint.Path, minioMetaTmpBucket)); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := os.MkdirAll(pathJoin(endpoint.Path, minioMetaTmpBucket), 0777); err != nil {
|
||||
if err := mkdirAll(pathJoin(endpoint.Path, minioMetaTmpBucket), 0777); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user