diff --git a/cmd/metacache-server-pool.go b/cmd/metacache-server-pool.go index 186239c9c..e2b35aa2c 100644 --- a/cmd/metacache-server-pool.go +++ b/cmd/metacache-server-pool.go @@ -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