Skip to main content

Module wal

Module wal 

Source
Expand description

WAL record types for array CRDT sync operations.

ArrayWalRecord is the durable on-disk representation of every array sync event that must survive process restart. Origin appends one record per inbound op before applying it to engine state; recovery replays the log in order.

§HLC byte invariant

hlc_bytes fields carry the 18-byte layout produced by crate::sync::Hlc::to_bytes(). Because zerompk does not derive impls for fixed-size [u8; N] arrays they are stored as Vec<u8>. The receiver must assert hlc_bytes.len() == 18 and convert via Hlc::from_bytes(&arr) where arr: [u8; 18].

Enums§

ArrayWalRecord
A single record written to the WAL for array CRDT sync events.