Redo Logging (cont)
Requirement for redo logging: write-ahead rule.
Data must be written to disk as follows:
- start transaction log record
- update log records indicating changes
- then commit log record (
OUTPUT )
- then
OUTPUT changed data elements themselves
Note that update log records now contain <T,X,v'> ,
where v' is the new value for X .
|