Skip to main content

Module write_gate

Module write_gate 

Source
Expand description

Keeps agent writes off the SQLite writer while store maintenance holds it. A write that arrives then is saved to the write queue and answered 202; once maintenance ends, writes keep queueing behind the saved ones until the replayer has sent them all, so none lands out of order.

Structs§

Closed
Held for the length of a maintenance run; dropping it lets writes back in behind whatever was queued meanwhile.
WriteGate
WriteSlot

Constants§

CLOCK_HELD_REASON
QUEUED_REASON
REPLAY_HEADER
Set by the replayer, so a queued write it sends is never queued again.

Functions§

hold_writes