Skip to main content

Module wal

Module wal 

Source
Expand description

Write-ahead logging and durability. Write-ahead logging, checked recovery, and self-tuning group commit.

Modules§

header
Shared-file-header encoding for append-only WAL files.
record
Byte-exact WAL record framing.
replay
Checked WAL prefix replay.

Structs§

CompletedGroup
One exact completed group retained in the bounded recent-group ring.
GroupSizeHistogram
Fixed-size logarithmic distribution of completed group record counts.
LogSeq
Monotonic write-ahead-log sequence number.
VisibleRecord
One record visible from in-memory state before its group reaches storage.
WalReader
Owned checked WAL prefix recovered from a filesystem image.
WalRetirement
Exact effect of one visibility-retirement request.
WalWriter
Single-store WAL writer using caller threads as leader and followers.
WalWriterStats
Deterministic group-composition and progress snapshot.

Enums§

VisibleRecordError
Checked access failure for a retained encoded record.
WalReadError
WAL recovery failure requiring the caller to stop rather than hide corruption.
WalRecoveryError
A non-empty WAL cannot be resumed because replay did not reach a clean end.
WalRetireError
Visibility retirement failure.
WalWriteError
WAL creation, staging, or group-flush failure.

Constants§

DEFAULT_MAX_GROUP_BYTES
Default upper bound for one group append, in encoded bytes.
DEFAULT_MAX_GROUP_BYTES_DURABLE
Default upper bound for a full-sync group append, in encoded bytes.
GROUP_SIZE_HISTOGRAM_BUCKETS
Number of fixed group-size histogram buckets.
RECENT_GROUP_LIMIT
Maximum number of completed groups retained exactly for diagnostics/tests.