Question: Consider the log in Figure 19.7. Suppose there is a crash during recovery, just before the operation abort log record is written for operation O1.

Consider the log in Figure 19.7. Suppose there is a crash during recovery, just before the operation abort log record is written for operation O1. Explain what will happen when the system recovers again.


Figure 19.7

To decides to abort Beginning of log If To aborts before operation

To decides to abort Beginning of log If To aborts before operation O ends, undo of update to C will be physical To has completed operation O on C, releases lower-level lock; physical undo cannot be done anymore, logical undo will add 100 to C T can update C since To has released lower-level lock on C T releases lower-level lock on C Logical undo of O adds 100 on C O undo complete

Step by Step Solution

3.50 Rating (173 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

There is no checkpoint in the log so recovery starts from the beginning of the log and rep... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Database System Concepts Questions!