Berildocs GitHub

Memory cards

Redo applies committed pages before undo

confidence: highupdated: 2026-11-25status: activedatabaserecoveryredo

Claim#

Crash recovery replays the log to a consistent point, then rolls back uncommitted transactions.

Test#

Kill the process mid-write. Restart. Check the redo and undo order.

Proof#

A consistent database with the committed row.

Failure modes#

A wrong order resurrects uncommitted data. A torn page needs a checksum.