Expand description
High-level emitter for array CRDT ops on the send path.
ArrayOutbound is called by the array engine hooks after each local
mutation succeeds. It:
- Looks up the current
schema_hlcfrom theSchemaRegistry. - Mints a fresh HLC via
ReplicaState::next_hlc. - Builds the
ArrayOp. - Appends to the durable
KvOpLogStore(permanent record for GC). - Enqueues in the durable
PendingQueue, which the sync push loop drains to Origin.
The caller must ensure the local engine write has already succeeded before
calling ArrayOutbound methods. If emit fails after a successful engine
write, the error is returned to the caller and the write is not rolled
back. The cell stays local and never reaches Origin.
Structs§
- Array
Outbound - Emitter for locally-originated array CRDT ops.