is it possible that a log file could be partially written?
e.g.
- do some stuff...
- call commit
- starts to write out committed data to .LG file.
- <crash>
- JDBM starts up and sees a .LG file and commits it. (even though its only partially written).
.: if a partial log file can exist, then does JDBM ignore it. if a partial log file can not exist then that is fine too.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this may be a silly question but...
is it possible that a log file could be partially written?
e.g.
- do some stuff...
- call commit
- starts to write out committed data to .LG file.
- <crash>
- JDBM starts up and sees a .LG file and commits it. (even though its only partially written).
.: if a partial log file can exist, then does JDBM ignore it. if a partial log file can not exist then that is fine too.
Upon recovery, JDBM will detect that the log file is corrupted and ignore any incomplete transaction record.
alex