Skip to main content

Module storage

Module storage 

Source
Expand description

Durable primitives extracted from route_search and route_archive (3ef2673).

Structs§

Envelope
Route archive v2 framing, kept byte compatible.

Functions§

append_checked
append_jsonl
digest
lock
Stable inode lock. Never unlink it; atomic replacement is for data only.
lock_is_free
Liveness probe for a lock that a process holds for its whole lifetime.
read_checked
read_jsonl_resilient
Reads JSONL while ignoring only an incomplete final record.
repair_tail
Repair only after verified replay, under exclusive job ownership. A valid unterminated record is retained and receives its newline.
write_atomic_json
Writes a JSON snapshot to a sibling temporary file and atomically renames it over the target.