Analysis reads the log from the last checkpoint and rebuilds the table of transactions active at the crash, the losers, and the table of dirty pages. Redo repeats history: from the smallest recLSN, it reapplies every update and CLR whose page LSN shows it is not on its page, losers’ records included. Undo rolls the losers back, newest record first, writing a CLR for each update it undoes; the CLR’s undo_next points to the next record to undo, so that a CLR met later is never undone twice.
Computer Science · Glossário