mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-04 11:15:39 +00:00
fix(ecstore): reset drive health between store init format retries (#2848)
Co-authored-by: houseme <housemecn@gmail.com> Co-authored-by: cxymds <Cxymds@qq.com>
This commit is contained in:
@@ -185,6 +185,11 @@ impl ECStore {
|
||||
_ = sleep(Duration::from_secs(interval)) => {
|
||||
}
|
||||
}
|
||||
// After waiting for peers, clear transient faulty marks so the next attempt can open RPCs again
|
||||
// (these `DiskStore` handles are reused; `is_faulty()` would otherwise short-circuit).
|
||||
for disk in disks.iter().flatten() {
|
||||
disk.reset_health_for_store_init_retry();
|
||||
}
|
||||
}
|
||||
}?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user