Undo Logging
Rules
- Write update(T, x, v) to the log before the new
value of x is written to the database.
- Write commit(T) to the log (soon) after updated
pages have been written to the database.
For any changed element
- Write the undo record to the log.
- Write the new value of the element to the database.
- (Eventually) write the commit record to the log.
|