Expand description
Crash-safe checkpoint publishing and WAL truncation helpers.
This module exists because “checkpoint + WAL + truncation” is where real systems most often get the durability story wrong. The safe rule is:
- write checkpoint (ideally with stable-storage barriers),
- record “checkpoint committed” in the WAL and make THAT durable,
- only then delete/truncate WAL segments that are fully covered by the checkpoint.
Structs§
- Checkpoint
Publisher - Coordinates a safe checkpoint publish and optional WAL truncation.
- Publish
Result - Result of publishing a checkpoint.