Skip to main content

Module purge

Module purge 

Source
Expand description

Purges on the engine (SPEC-ENGINE §3.4.6, V4.7): after a fold, every node a purge removed leaves the dedupe index (its keys move to purge_deny, so the text is never captured again), its own local text is removed from the project knowledge, and each tombstone gets one signed acknowledgement for the place (E9 / purge_acks[] on E5).

Structs§

Applied
What apply did.

Constants§

PURGE_ACK_DOMAIN
Signature domain of a purge acknowledgement.

Functions§

ack
A signed acknowledgement that this engine applied tombstone seq of purge_id in place at applied_at (ms).
apply
Apply what graph purged to the replica’s indexes and queue one ack per tombstone not acknowledged yet (its first applied_at is kept).
mark_sent
The place accepted these acks: they move from pending to sent.
purge_local_store
Remove the local text a purge took out of the place: facts recorded in own_sources whose current value still has the recorded digest. Returns how many local facts were removed.
signed_pending
The pending acks of replica, signed for place.