Skip to main content

Module variable

Module variable 

Source
Expand description

Position-based journal for variable-length items.

The data blobs are the source of truth. The offsets journal provides indexed access and records the preferred recovery point for replaying data to rebuild offset entries.

§Durability

Data blobs follow the same rollover pipeline as the fixed journal: filling the tail seals it and starts its fsync after awaiting the previous rollover’s fsync, so only the tail and its predecessor can ever hold non-durable data. Recovery forward-validates those two blobs for interior fsync holes (skipping any wholly covered by the acknowledged floor), and the offsets journal only advances after the data it indexes is durable.

Structs§

Config
Configuration for a Journal.
Journal
A contiguous journal with variable-size entries.
PreparedAppend
Items encoded for a deferred append, created by Journal::prepare_append and consumed by Journal::append_prepared.
Reader
A reader over a variable journal.