From c88720ea2c0a4cfbe0cd9512ee3d95c023853872 Mon Sep 17 00:00:00 2001 From: Bala FA Date: Mon, 27 Jun 2016 10:40:22 +0530 Subject: [PATCH] XL/listObjects: Ignore entry if getObjectInfo() returns errFileNotFound (#2004) Fixes #1956 --- xl-v1-list-objects.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xl-v1-list-objects.go b/xl-v1-list-objects.go index 48661df87..8dfe13fd7 100644 --- a/xl-v1-list-objects.go +++ b/xl-v1-list-objects.go @@ -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) } }