From 70d2c2ccc97fd8c688978cdc9c0f2069d12cb911 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 19 Nov 2020 09:15:09 -0800 Subject: [PATCH] skip files that are not erasure objects or directories (#10926) without this change WalkDir reports errors while trying to read `format.json/xl.meta` which is a replicated file --- cmd/metacache-walk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/metacache-walk.go b/cmd/metacache-walk.go index 9aa2e8a03..fd4628aff 100644 --- a/cmd/metacache-walk.go +++ b/cmd/metacache-walk.go @@ -205,6 +205,8 @@ func (s *xlStorage) WalkDir(ctx context.Context, opts WalkDirOptions, wr io.Writ if !isDirObj { dirStack = append(dirStack, meta.name+slashSeparator) } + case isSysErrNotDir(err): + // skip default: logger.LogIf(ctx, err) }