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 | 4e744fc4a95cc42f062803ad651a8d2b65b487d8 (patch) | |
| tree | 65e64236815929a00a288b3569f7dff673131e98 /src/remake/switch.rs | |
| parent | 8f3965289cdfff95b95b219666cfb1de2d7f1976 (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() |
