mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04:00
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 {
|
if !isDirObj {
|
||||||
dirStack = append(dirStack, meta.name+slashSeparator)
|
dirStack = append(dirStack, meta.name+slashSeparator)
|
||||||
}
|
}
|
||||||
|
case isSysErrNotDir(err):
|
||||||
|
// skip
|
||||||
default:
|
default:
|
||||||
logger.LogIf(ctx, err)
|
logger.LogIf(ctx, err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user