Author | Message |
---|---|
Urvashi
Posts: 34
|
Posted 16:22 Aug 14, 2009 |
I just tried to run testLogWriter with t.commit and heres the code Transaction t = new Transaction(); , and when i view the log , i see old values like this LOG: <COMMIT 2> and when i run it the second time, i get new values, like this LOG: <COMMIT 2> why do i get different values ? |
cysun
Posts: 2935
|
Posted 16:25 Aug 14, 2009 |
Original SimpleDB uses Undo Recovery so the log records keep the old values. The first time the old values are 0 and 12, and the second time the "old values" become 123 and 456 (i.e. the values you wrote last time). |
Urvashi
Posts: 34
|
Posted 16:28 Aug 14, 2009 |
ok , thank u |