fix: fallback listing on drives that are unformatted, disconnected (#13249)

This commit is contained in:
Harshavardhana
2021-09-23 17:24:24 -07:00
committed by GitHub
parent a1271d984f
commit 769f0b1e24
2 changed files with 25 additions and 12 deletions

View File

@@ -209,6 +209,10 @@ func (z *erasureServerPools) listPath(ctx context.Context, o *listPathOptions) (
}
}()
o.ID = ""
if err != nil {
logger.LogIf(ctx, fmt.Errorf("Resuming listing from drives failed %w, proceeding to do raw listing", err))
}
}
// Do listing in-place.