Algorithms for Recovery and Isolation Exploiting Semantics
Developed at IBM Research in early 1990s for the DB2 DBMS.
Write-Ahead Logging:
Repeating History During Redo:
Logging Changes During Undo:
Every WAL log record includes a globally unique log sequence number (LSN).
Various components in the system keep track of LSNs that pertain to them…
pageLSN
.
pageLSN
every time a txn modifies a record in the page.flushedLSN
.
flushedLSN
in memory every time the DBMS writes out the WAL buffer to disk.pageLSNx
≤ flushedLSN
Each txn invokes a sequence of reads and writes, followed by commit or abort.