Skip to main content

Module publish

Module publish 

Source
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:

  1. write checkpoint (ideally with stable-storage barriers),
  2. record “checkpoint committed” in the WAL and make THAT durable,
  3. only then delete/truncate WAL segments that are fully covered by the checkpoint.

Structs§

CheckpointPublisher
Coordinates a safe checkpoint publish and optional WAL truncation.
PublishResult
Result of publishing a checkpoint.