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.
FileCheckpointOptions
Independently selected root and bank copies. Defaults retain the existing single-root, single-bank mode and its file/I/O costs.
FileCheckpointPagedLog
Owns native devices at path, .bank0 and .bank1, with independently selected .mirror copies of the root and banks. Acquires every writer fence before validation or repair. Close never flushes pending records; it attempts every device in reverse order, root last. Uncertain cleanup retains the affected native writer fence.
FilePageDevice
Native exclusive page device. Parent must exist. Existing/stale .writer ownership is never stolen; externally fence its process before removal. Close attempts all handles and retains ownership after any uncertain error. Prefer explicit close to observe cleanup errors; Drop preserves the fence.
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.
SortedJournalEntry
SortedJournalTable
Caller owns an exclusive immutable device. Open validates the whole file; get checks selected physical pages against its retained identity/hashes. Read failure never writes, retries a mutation or changes ownership.
SortedTableOptions

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.