* `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 *
()
| 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, |
no test coverage detected