pub fn spawn_wal_checkpoint_loop(
state: Db,
interval: Duration,
) -> JoinHandle<()>Expand description
Spawn the periodic WAL checkpoint loop. First checkpoint runs
interval / 2 after start (staggered from the GC loop to avoid
lock-contention bursts on cold start), then on a fixed cadence.