XL: Don't return ignored errors in listDirFactory (#3935)

Previously, erasure backend's `listDirFactory` may return errors which
were explicitly ignored. With this change, it returns nil. Superfluous
checks at higher-layers for ignored errors are removed as well.
This commit is contained in:
Krishnan Parthasarathi
2017-03-20 23:39:05 +05:30
committed by Harshavardhana
parent 1396e91dd1
commit eb02261642
4 changed files with 17 additions and 32 deletions

View File

@@ -349,10 +349,6 @@ func (xl xlObjects) listMultipartUploads(bucket, prefix, keyMarker, uploadIDMark
}
// For any walk error return right away.
if walkResult.err != nil {
// File not found or Disk not found is a valid case.
if isErrIgnored(walkResult.err, xlTreeWalkIgnoredErrs...) {
continue
}
return ListMultipartsInfo{}, err
}
entry := strings.TrimPrefix(walkResult.entry, retainSlash(bucket))