Write-ahead log
This is how a database keeps a commit through a crash. Append the change to a log and fsync it before touching any data page.
Assumes nothing. You can start here.
11 of 38Storage
This is how a database keeps a commit through a crash. Append the change to a log and fsync it before touching any data page.
Assumes nothing. You can start here.