mirror of
https://github.com/minio/minio.git
synced 2025-11-24 19:46:16 -05:00
XL: simplify isMultipartObject not need to handle unknown errors. (#1686)
Unknown errors are just logged with errorIf.
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
9fdb69563d
commit
7ae5470395
@@ -127,10 +127,7 @@ func treeWalk(layer ObjectLayer, bucket, prefixDir, entryPrefixMatch, marker str
|
||||
// entryToFileInfo() can call StatFile for regular files or getMultipartObjectInfo() for multipart files.
|
||||
for i, entry := range entries {
|
||||
if isXL && strings.HasSuffix(entry, slashSeparator) {
|
||||
if ok, err := isMultipartObject(disk, bucket, path.Join(prefixDir, entry)); err != nil {
|
||||
send(treeWalkResult{err: err})
|
||||
return false
|
||||
} else if ok {
|
||||
if isMultipartObject(disk, bucket, path.Join(prefixDir, entry)) {
|
||||
entries[i] = strings.TrimSuffix(entry, slashSeparator) + multipartSuffix
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user