mirror of
https://github.com/minio/minio.git
synced 2025-03-03 15:20:08 -05:00
Fixes the if condition when uploads.json file cannot be found (#4883)
This commit is contained in:
parent
9925640da8
commit
b74ef6d5f4
@ -43,7 +43,7 @@ func (fs fsObjects) isMultipartUpload(bucket, prefix string) bool {
|
|||||||
uploadsIDPath := pathJoin(fs.fsPath, bucket, prefix, uploadsJSONFile)
|
uploadsIDPath := pathJoin(fs.fsPath, bucket, prefix, uploadsJSONFile)
|
||||||
_, err := fsStatFile(uploadsIDPath)
|
_, err := fsStatFile(uploadsIDPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == errFileNotFound {
|
if errorCause(err) == errFileNotFound {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
errorIf(err, "Unable to access uploads.json "+uploadsIDPath)
|
errorIf(err, "Unable to access uploads.json "+uploadsIDPath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user