CS FundamentalsVery hardGATE CS

After ARIES analysis the dirty page table holds P1 (recLSN 40), P2 (recLSN 25) and P3 (recLSN 60); the last checkpoint began at LSN 30. Where does the redo pass start, and what happens to the log record at LSN 35 that updates P1?

  1. A. At LSN 30; the LSN 35 update is redone
  2. B. At LSN 25; the LSN 35 update is redone because it is after the start
  3. C. At LSN 25; the LSN 35 update is skipped without reading P1 because 35 < recLSN(P1) = 40
  4. D. At LSN 40; LSN 35 is never examined

Correct answer: C. At LSN 25; the LSN 35 update is skipped without reading P1 because 35 < recLSN(P1) = 40

Redo starts at the smallest recLSN in the dirty page table, 25. A record is skipped if its page is not dirty or its LSN is below that page's recLSN; 35 < 40 means P1's copy on disk already contains it, so no page read is needed.

More DBMS and SQL questions

Exams that ask this topic