diff options
| author | tv <tv@krebsco.de> | 2026-11-17 03:22:31 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-17 04:40:13 +0100 |
| commit | d5cc9482dd527ef9beb82671f6f35832b3280d57 (patch) | |
| tree | c3190c9496734f0cc32e28a41a4c079d668167cd /src/document/meta.rs | |
| parent | d6194cdc78b69914810cfc02bbd31aef41067be4 (diff) | |
held: a store starts from the checkpoint its document holds
A remake's snapshot holds the store's checkpoint at `_continuum/checkpoint`
where it isn't the root (`docs/store.md`, What the document holds), and
none of what came before it. A node reading its store anew from such a
document starts there, with what the checkpoint keeps; one pinning a
checkpoint finds it there too, where it can't build it from the events.
Diffstat (limited to 'src/document/meta.rs')
| -rw-r--r-- | src/document/meta.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/document/meta.rs b/src/document/meta.rs index 7a9a489..af7aac7 100644 --- a/src/document/meta.rs +++ b/src/document/meta.rs @@ -48,6 +48,8 @@ pub(crate) const SESSIONS: &str = "sessions"; pub(crate) const LOCAL: &str = "local"; #[cfg(feature = "federation")] pub(crate) const EVENTS: &str = "events"; +#[cfg(feature = "federation")] +pub(crate) const CHECKPOINT: &str = "checkpoint"; /// The store path `_continuum/<parts…>`. pub(crate) fn path(parts: &[&str]) -> Vec<String> { |
