I have a database log where some transactions win (they are committed before crash) and some lose (not committed yet). We learned in class that the losers' actions have to be undone backwards.Is there any reason for doing this backwards? Can anyone give a simple example of a log where forward undos would give wrong results?
Why must uncommitted transactions be undone in backwards order?
concurrency;databases