From c2f47d6f4cb37d482eddf9e2c31e40161c4111de Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 03:30:43 +0000 Subject: remake: a holding swarm's snapshot holds the store read at its base A compaction's snapshot in a swarm holding a store holds the store as the node reads it from the document at the base, by its own refusals and its operator's drops (`docs/store.md`, Remakes): the checkpoint it reaches there, where it isn't the root, at `_continuum/checkpoint`; the root, the events that checkpoint keeps and those after it, each at its ID; and of the entries, the members'. What the checkpoint forgot, events nobody takes, and the entries of nodes that aren't members stay behind (`Holding::at_base`, `events::snapshot`, `Host::holding`). --- src/remake/switch.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/remake/switch.rs') diff --git a/src/remake/switch.rs b/src/remake/switch.rs index df3fcc8..94956f6 100644 --- a/src/remake/switch.rs +++ b/src/remake/switch.rs @@ -189,6 +189,10 @@ async fn switch( if let Some(reference) = &record.proposal.content { request.content = Some(content::ensure(host, reference).await?); } + #[cfg(feature = "federation")] + { + request.held = super::snapshot::Held(Some(host.holding())); + } let translator = request .translator() .ok_or_else(|| format!("unknown remake kind {:?}", request.kind))?; -- cgit v1.3.1