Skip to main content

Module replica_state

Module replica_state 

Source
Expand description

Persistent replica identity and HLC generator for the array CRDT sync subsystem.

ReplicaState is loaded once at [NodeDbLite::open] and shared across the sync subsystem via Arc. It combines the stable ReplicaId (persisted under Namespace::Meta key b"array.replica_id") with a monotonic HlcGenerator seeded from that identity.

Structs§

ReplicaState
Persistent replica identity + monotonic HLC generator.