mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
listing must return WalkDir() errors first (#19006)
This commit is contained in:
parent
5b1a74b6b2
commit
d28bf71f25
@ -305,6 +305,15 @@ func (z *erasureServerPools) listMerged(ctx context.Context, o listPathOptions,
|
||||
|
||||
cancelList()
|
||||
wg.Wait()
|
||||
|
||||
// we should return 'errs' from per disk
|
||||
if isAllNotFound(errs) {
|
||||
if isAllVolumeNotFound(errs) {
|
||||
return errVolumeNotFound
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -313,13 +322,6 @@ func (z *erasureServerPools) listMerged(ctx context.Context, o listPathOptions,
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
if isAllNotFound(errs) {
|
||||
if isAllVolumeNotFound(errs) {
|
||||
return errVolumeNotFound
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
for _, err := range errs {
|
||||
if errors.Is(err, io.EOF) {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user