Recovery Techniques (cont)
Example of transaction execution:
BEGIN
READ(A,v); v = v*2; WRITE(A,v);
READ(B,v); v = v+1; WRITE(B,v);
COMMIT
|
READ accesses the buffer manager and may cause INPUT
WRITE place new value in buffer (via buffer manager)
COMMIT needs to ensure that buffers are OUTPUT to disk
|