mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-12 08:06:54 +00:00
@@ -1348,6 +1348,7 @@ impl SetDisks {
|
||||
Err(e) => {
|
||||
warn!("connect_endpoint err {:?}", &e);
|
||||
if ep.is_local && DiskError::UnformattedDisk.is(&e) {
|
||||
info!("unformatteddisk will push_heal_local_disks, {:?}", ep);
|
||||
GLOBAL_BackgroundHealState.push_heal_local_disks(&[ep.clone()]).await;
|
||||
}
|
||||
return;
|
||||
@@ -3478,14 +3479,19 @@ impl SetDisks {
|
||||
if let Some(err) = ret_err.as_ref() {
|
||||
return Err(err.clone());
|
||||
}
|
||||
info!("step 6");
|
||||
if !tracker.read().await.queue_buckets.is_empty() {
|
||||
return Err(Error::from_string(format!(
|
||||
"not all buckets were healed: {:?}",
|
||||
tracker.read().await.queue_buckets
|
||||
)));
|
||||
}
|
||||
info!("step 7");
|
||||
drop(result_tx);
|
||||
let _ = task.await;
|
||||
info!("step 8");
|
||||
defer.await;
|
||||
info!("step 9");
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user