mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Fix WalkDir fallback hot loop (#14961)
Fix fallback hot loop fd was never refreshed, leading to an infinite hot loop if a disk failed and the fallback disk fails as well. Fix & simplify retry loop. Fixes #14960
This commit is contained in:
parent
8859c92f80
commit
90a52a29c5
@ -882,7 +882,11 @@ func listPathRaw(ctx context.Context, opts listPathRawOptions) (err error) {
|
||||
}
|
||||
|
||||
// fallback only when set.
|
||||
for fd := fallback(werr); fd != nil; {
|
||||
for {
|
||||
fd := fallback(werr)
|
||||
if fd == nil {
|
||||
break
|
||||
}
|
||||
// This fallback is only set when
|
||||
// askDisks is less than total
|
||||
// number of disks per set.
|
||||
|
Loading…
Reference in New Issue
Block a user