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