mirror of https://github.com/minio/minio.git
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
This commit is contained in:
parent
9dea7020f0
commit
70d2c2ccc9
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue