Skip to main content

Module rev

Module rev 

Source
Expand description

The commit sequence number — the first component of the total write order. Totality is structural: the head rev lives in the document and is minted only by a successful try_apply, so a refused commit consumes nothing and the log cannot gap. A Rev outside the fold is inert (try_apply takes no rev), so next stays public while minting stays module-private.

DocStamp lives here as the other half of the version question: a rev names a position in the log, a stamp names one document value inside one process.

Structs§

DocStamp
Identifies one value of a Document. A fresh stamp is minted process-wide wherever a distinct value is born and a clone carries its source’s, so equal stamps imply identical content — which is what lets a derived index tell “the same document” from “the same rev” without hashing the contents.
Rev