Skip to main content

Module gc

Module gc 

Source
Expand description

Log compaction: collapse ops below the min-ack frontier into snapshots.

collapse_below is the pure GC entry point. It consults an AckVector to find the min-ack frontier, writes one snapshot per affected array via a SnapshotSink, then drops the compacted ops from the log. No I/O beyond the abstract traits.

Structs§

GcReport
Summary produced by collapse_below.
MockSnapshotSink
In-memory SnapshotSink suitable for tests in any crate that depends on nodedb-array.

Functions§

collapse_below
Compact ops below the min-ack frontier into snapshots, then prune the log.