btree-wal-three-phase-commit

Status: IN

The B-tree WAL commit follows a strict three-phase protocol: (1) write WAL entries + fsync, (2) fsync data file via `page_manager.sync()`, (3) truncate WAL + fsync WAL fd — crash-safe at every interleaving because WAL entries are physical page images making replay idempotent.

Source: entries/2026/05/29/topic-crash-recovery-invariants.md

JSON