XL/listObjects: Ignore entry if getObjectInfo() returns errFileNotFound (#2004)

Fixes #1956
This commit is contained in:
Bala FA 2016-06-27 10:40:22 +05:30 committed by Harshavardhana
parent ce7d5eddbc
commit c88720ea2c
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ func (xl xlObjects) listObjects(bucket, prefix, marker, delimiter string, maxKey
var err error
objInfo, err = xl.getObjectInfo(bucket, entry)
if err != nil {
// Ignore errFileNotFound
if err == errFileNotFound {
errorIf(err, "Unable to get object info", bucket, entry)
continue
}
return ListObjectsInfo{}, toObjectErr(err, bucket, prefix)
}
}