MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / checkpointWalPassive

Method checkpointWalPassive

src/db/index.ts:522–524  ·  view source on GitHub ↗

* `PRAGMA wal_checkpoint(PASSIVE)` on a worker thread with its own * connection. PASSIVE never blocks the writer, and running it off-thread * means the main thread — and the #850 watchdog heartbeat — keep turning * even when the backfill is minutes of I/O on slow storage (a synchronous *

()

Source from the content-addressed store, hash-verified

520 * never run inline on the main thread).
521 */
522 async checkpointWalPassive(): Promise<{ busy: number; log: number; checkpointed: number } | null> {
523 return this.checkpointWal('PASSIVE');
524 }
525
526 /**
527 * `PRAGMA wal_checkpoint(TRUNCATE)` — same off-thread pattern as PASSIVE,

Callers 4

runWalHealMethod · 0.95
backfillFullyMethod · 0.80
fireMethod · 0.80

Calls 1

checkpointWalMethod · 0.95

Tested by

no test coverage detected