Recovery using an undo log
Algorithm
- Scan the log backward.
- Note committed transactions, indicated by commit(T) log record.
- To process a log record update(T, x, v):
- T committed: nothing to do.
- otherwise: Modify x in the database to store v, the original value.
|