Skip to main content

Module store

Module store 

Source
Expand description

Durable storage under the journal (§12c): a preallocated log, an atomically replaced checkpoint, a fixed-size RecoveryFailed sentinel, and the per- transaction fence epochs that backends check before mutating.

MemStore is the in-memory store for the fake harness. Cloning it gives another “process” a handle on the same storage; it can tear writes on demand. FileStore is the on-disk layout under /var/lib/planarian/journal/.

Structs§

FileStore
dir/journal (preallocated), dir/checkpoint, dir/sentinel (4 KB, reserved at install), dir/lock, and fences at dir/../txn/<txn>/lease.
MemGuard
Owned guard for MemStore::lock.
MemInner 🔒
MemStore

Constants§

DEFAULT_CAPACITY
SENTINEL_SIZE

Traits§

Store