Trims the ledger to its cap, newest kept.
Counts and returns what it deleted so the caller can bill it against the rows-written budget explicitly. A GC pass that does not report its own cost is how the watchdog table got to 46% of the database while every figure looked fine.
Trims the ledger to its cap, newest kept.
Counts and returns what it deleted so the caller can bill it against the rows-written budget explicitly. A GC pass that does not report its own cost is how the watchdog table got to 46% of the database while every figure looked fine.