drupflare/worker - v1.0.0
    Preparing search index...

    Function gcHealthLedger

    • 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.

      Parameters

      • sql: HealthSql
      • maxRows: number = LEDGER_MAX_ROWS

      Returns number