Skip to main content

Module paged

Module paged 

Source
Expand description

Optional SQL-free shadow pages for the ordered log, independent of logical revision and replication strategies. See docs/protocol/native-pages.md.

Structs§

CheckpointPagedLog
Optional atomic journal replacement over three exclusive device values. Root data is unused; its two metadata slots select one complete page bank. Bank identities bind each reuse to a distinct monotone root epoch. Neither extraction nor destruction flushes pending records. A failed I/O fences this owner; reopen all devices to discover its actual durable state. Destruction drops both banks before the root, following device destructors.
MirroredCheckpointRoot
Owns two exclusive raw root devices. No repair runs during selection; the checkpoint log validates its selected bank before completing root recovery. Both decision copies must synchronize before publication is acknowledged. Extracting the devices never flushes or repairs them.
MirroredPageDevice
Owns two exclusive repair-capable devices. Extraction does not flush records. Both data syncs precede any metadata write; both decision syncs precede ACK.
PagedLog
Immutable committed doublets pages and alternating metadata decisions. Appends stage UTF-8 strings; flush publishes the complete pending group. Read/flush errors fence this owner; reopen and discover an uncertain outcome. Extraction transfers device ownership without flushing pending records.

Constants§

MAX_PAGES
PAGE_SIZE

Traits§

PageDevice
Caller-owned exclusive synchronous storage. Successful sync must persist all preceding writes in that file. Mutation failure requires reopening the log.
RepairPageDevice
Privileged repair of an existing page or contiguous missing suffix. The caller must validate a surviving copy and the complete logical prefix first.