pub struct CollectionRecord {
pub epoch: String,
pub version: u64,
pub floor: u64,
pub dirty: bool,
pub rotated_at: u64,
pub reconciled_at: u64,
pub rotate_owed: bool,
}Expand description
One collection’s ledger header (replica_collections).
Fields§
§epoch: StringWhich unbroken run of versions this is: [a-z0-9]{1,16}.
version: u64The head: the version of the latest change; 0 means nothing yet.
floor: u64Deletes at or below this version are forgotten; a device asking from below it gets a full copy.
dirty: boolReconcile before the next pull.
rotated_at: u64Unix ms of the last epoch rotation.
reconciled_at: u64Unix ms of the last reconcile that changed the record (a new version or
epoch, the floor, an owed rotation, dirty cleared). A reconcile that
changes nothing leaves it, so the record is never written for it alone:
a pass that changes nothing writes nothing.
rotate_owed: boolA rotation was asked for within a minute of the last one and is still to happen. It happens before the next version is assigned, or at the first ledger operation once the minute has passed, whichever comes first; it is never dropped.