Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Write-ahead log, undo record, redo record, log sequence number, checkpoint?

Também chamado de: write-ahead log · log sequence number · redo record · undo record · checkpoint

Definition 23.9 University Computer Science — Year 3 · Capítulo 23 — Concurrency Control and Recovery

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.

Ler no capítulo →