Skip to main content

Module log

Module log 

Source
Expand description

The log on a store: one Writer appends entries, seals bundles, writes tiles and then the tree state; any number of Readers read entries and check them against the tree.

Write order follows Tessera’s POSIX storage: entry bundles, hash tiles, index sidecars, the manifest, then .state/treeState last, every file whole or not at all. On open the writer moves anything the tree state does not cover to .state/torn-<utc> and never adopts it silently, and rebuilds a sidecar or manifest row a sealed bundle lacks.

Structs§

Reader
Reads a log at one tree state. Every entry it returns hashes to the leaf the checked tiles hold for its index.
TreeState
What .state/treeState holds: the size and the root the tiles are complete to. Two lines, the decimal size and the lower-case hex root.
Writer
The one writer of a log. Holds .state/treeState.lock from open to drop.