Slideshow:
|
I.e.:
|
Question:
|
We need to define the notion of a consistent database state first before discussing failures.
|
|
|
|
|
|
|
|
|
Read record A
Set: A.balance = A.balance - 100
Write record A
Read record B
Set: B.balance = B.balance + 100
Write record B
|
Read record A
Set: A.balance = A.balance + 100
Write record A
|
|
Graphically:
|
A transaction will transform a consistent database state to another consistent database state