aboutsummaryrefslogtreecommitdiffstats
path: root/src/document/file.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 13:59:28 +0000
committertv <tv@krebsco.de>2026-11-16 15:06:15 +0100
commit3b5045838daec9d8ffb46ff030bf17e08fd53148 (patch)
tree93f31cc2872c0761f1570a4b82a5ba692b2ae0fc /src/document/file.rs
parent56eafff2d109633042e5b56ec8d695989d81eeee (diff)
docs/store: checkpoints
A store holds a checkpoint, the state at some heads written down (those heads, the events before them its fold keeps, and what the fold says of the rest), and the events after it. The fold says when a node moves to a later checkpoint: the node builds it itself, forgets what it doesn't keep and every event whose history lacks its heads, and refuses such events from then on, so that it holds what is relevant and nothing else. A checkpoint a node can't build, as it was away too long or joins, it takes only where its operator pins it. A store's root is its first checkpoint, and a fork's root a checkpoint at the heads it forks at, which nodes holding the history up to them check, and others take on their operator's word. On Automerge, a remake's snapshot holds the store as it is at the base, so what a checkpoint forgot leaves the document there.
Diffstat (limited to 'src/document/file.rs')
0 files changed, 0 insertions, 0 deletions