mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
xl: add checks for minioTmpMetaBucket in CreateFile
This commit is contained in:
+3
-1
@@ -1432,7 +1432,9 @@ func (s *xlStorage) CreateFile(ctx context.Context, volume, path string, fileSiz
|
|||||||
parentFilePath := pathutil.Dir(filePath)
|
parentFilePath := pathutil.Dir(filePath)
|
||||||
defer func() {
|
defer func() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
removeAll(parentFilePath)
|
if volume == minioMetaTmpBucket {
|
||||||
|
removeAll(parentFilePath)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user