A write-ahead log is an append-only file of records describing every change, whose records reach the disk before the pages they describe. Each record has a log sequence number (LSN), increasing along the log, and each page carries the LSN of the last record applied to it, its page LSN. An update record carries a redo record part, the new value, to repeat the change, and an undo record part, the old value, to cancel it; a compensation log record, or CLR, logs an undo already done. A checkpoint is a record of the active transactions with their last LSNs, and of the dirty pages with, for each, the LSN of its first change not yet on disk (its recLSN), from which recovery can start reading.
Computer Science · Begrippenlijst
Wat is Write-ahead log, undo record, redo record, log sequence number, checkpoint?
Ook bekend als: write-ahead log · log sequence number · redo record · undo record · checkpoint