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:
weisd
2026-05-08 11:16:58 +08:00
committed by GitHub
parent 9d85b7d23a
commit 97a2775434
4 changed files with 61 additions and 0 deletions
+5
View File
@@ -140,6 +140,11 @@ impl RemoteDisk {
self.health.force_runtime_state_for_test(state);
}
/// Same as [`DiskHealthTracker::reset_for_store_init_retry`]: undo a transient faulty mark before another format load attempt.
pub fn reset_health_for_store_init_retry(&self) {
self.health.reset_for_store_init_retry(&self.endpoint);
}
fn spawn_recovery_monitor_if_needed(&self) {
if !self.health_check {
return;