Skip to main content

Module local

Module local 

Source
Expand description

Linux/local-filesystem packet-A adapter. All writers for a replica set must use the same directory and fixed configuration. Keep fence files in place. LocalReplica acknowledges in memory; DurableReplica commits before acknowledgement and offers checked ordinary restart of an existing committed store.

Structs§

CommittedTransaction
One committed local transaction. The suffix is the existing, unchanged log wire encoding; the 24-byte prefix is LocalReplica::allocation_bytes(). This storage container is not a new transport encoding. Reading it grants no write lease and does not implement packet C’s checked writable restart.
DurableReplica
Additive durable API for Linux local filesystems. The root must already exist durably and remain in place; all writers use the same fixed root and configuration. Each Accepted/Ok(record) follows full transaction replacement and file + directory sync. Any persistence error permanently disables this instance’s writes, retaining its fence until drop. Use the explicit restart constructors for existing stores; fresh constructors never reset a store.
LocalReplica
Owns the OS lock for its entire lifetime. No Clone or mutable state/log access is exposed. Contention yields a read-only instance whose writes fail.
WriteTicket
A generation captured by a caller. Renewal invalidates all older tickets.

Enums§

LocalError