A problem with that approach is you might have to update the commit record when you
compact, since the number of tx operations in the file with the commit might have
changed.
The commit record might be in the current file so that will be hard and undesirable.
If you just add update records you don't have to update the actual commit record.
And you have all the information you need to do this - when you compact the journal you
know how many tx operations are in the file both before and after, so you can easily add
an update record without having to store any extra information in memory.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239563#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...