Review: purpose of checkpointing a log
To understand
when
some log records can be
remove (= deleted),
we must
understand their
usage
We will first
examine the
usage of the
REDO log records for
aborted/committed transactions
The use of the REDO log records of
aborted transactions
The use of the REDO log records of
committed transactions
The REDO log records for
committed transactions are
used to
redo their updates
IF we
delete (remove)
these REDO log records for
committed transactions,
we cannot perform the
redo recovery !!!
How to perform log checkpointing (= remove records) on a REDO log
Using when we have
learned about the
usage of
REDO records:
(1) Because we
do not need to use
REDO log records to
recover the
aborted transactions
(2) Because
after we
incorporated the
changes by committed transactions,
we won't need to recover them !!!
The Nonquiescent checkpoint algorithm
for a REDO log
The Nonquiescent checkpoint algorithm
for a REDO log
- Example
The Nonquiescent checkpoint algorithm
for a REDO log
- Example
Step 1: (follow with the pull out)
The Nonquiescent checkpoint algorithm
for a REDO log
- Example
Step 2: (follow with the pull out)
The Nonquiescent checkpoint algorithm
for a REDO log
- Example
Step 3: (follow with the pull out)
The Nonquiescent checkpoint algorithm
for a REDO log
- Example
Possible continuation: (follow with the pull out)
❮
❯