[prev] 2 [next]

Recovery Techniques (cont)

Example of transaction execution:

-- implements A = A*2; B = B+1;
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