mirror of https://github.com/minio/minio.git
xl: add checks for minioTmpMetaBucket in CreateFile
This commit is contained in:
parent
75741dbf4a
commit
410e84d273
|
@ -1432,7 +1432,9 @@ func (s *xlStorage) CreateFile(ctx context.Context, volume, path string, fileSiz
|
|||
parentFilePath := pathutil.Dir(filePath)
|
||||
defer func() {
|
||||
if err != nil {
|
||||
removeAll(parentFilePath)
|
||||
if volume == minioMetaTmpBucket {
|
||||
removeAll(parentFilePath)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue