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

Method checkpointWalPassive

src/db/index.ts:489–491  ·  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

487 * never run inline on the main thread).
488 */
489 async checkpointWalPassive(): Promise<{ busy: number; log: number; checkpointed: number } | null> {
490 return this.checkpointWal('PASSIVE');
491 }
492
493 /**
494 * `PRAGMA wal_checkpoint(TRUNCATE)` — same off-thread pattern as PASSIVE,

Callers 3

backfillFullyMethod · 0.80
fireMethod · 0.80

Calls 1

checkpointWalMethod · 0.95

Tested by

no test coverage detected