diff options
| author | tv <tv@krebsco.de> | 2026-11-17 03:30:43 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-17 04:40:15 +0100 |
| commit | c2f47d6f4cb37d482eddf9e2c31e40161c4111de (patch) | |
| tree | eae4a0672a56b98c0983aa43d6c25ec1513009b6 /src/remake/coordinator.rs | |
| parent | d5cc9482dd527ef9beb82671f6f35832b3280d57 (diff) | |
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`).
Diffstat (limited to 'src/remake/coordinator.rs')
| -rw-r--r-- | src/remake/coordinator.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/remake/coordinator.rs b/src/remake/coordinator.rs index 0d7a434..a235308 100644 --- a/src/remake/coordinator.rs +++ b/src/remake/coordinator.rs @@ -234,6 +234,10 @@ async fn commit<H: Host>(host: &H, id: &str, record: &Record) -> Result<(), Stor }; let base_heads = fixed_now.then(|| records::encode_heads(&request.base_heads)); request.content = content; + #[cfg(feature = "federation")] + { + request.held = snapshot::Held(Some(host.holding())); + } let snapshot = match snapshot::build_detached(copy, request).await { Ok((snapshot, _copy)) => snapshot, Err(error) => { |
