diff options
| author | tv <tv@krebsco.de> | 2026-10-24 22:00:37 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 22:00:37 +0200 |
| commit | c301f7f3805b21fe811ee5201f8fe817274c33bb (patch) | |
| tree | 838b70e3074793e25ca6b5271d5684a033e150b4 /src/remake/switch.rs | |
| parent | 4953dacb654f195cf0ad04f2560fddcaab6dbf7d (diff) | |
remake coordinators resume after restart
Diffstat (limited to 'src/remake/switch.rs')
| -rw-r--r-- | src/remake/switch.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/remake/switch.rs b/src/remake/switch.rs index c18905c..e4644fb 100644 --- a/src/remake/switch.rs +++ b/src/remake/switch.rs @@ -27,6 +27,7 @@ use tracing::{error, info, warn}; use super::Host; use super::catchup; use super::content; +use super::coordinator; use super::delta::{self, ReplayStats}; use super::kind::Translator; use super::local::LocalStatus; @@ -90,6 +91,9 @@ async fn check<H: Host>(host: &H) { host.dormant_after().as_millis() as u64, ); let local_record = EpochRecord::from(local); + if host.is_node_ready().await { + coordinator::resume(host, &local_record, &all); + } let committed: Vec<(String, Record)> = all .into_iter() |
