Offsets during AOL replay can be incorrect
qpfiffer opened this issue · comments
Quinlan Pfiffer commented
Compaction removes history (in the aol file) so that during replay we get different offsets. We need the internal command to just set the offset and bucket properties during replay.
For an example of the kind of hoops we have to jump through right now:
https://github.com/infoforcefeed/OlegDB/blob/master/c_src/aol.c#L202
See this comment for a better explanation of the issue and what needs to be done:
https://github.com/infoforcefeed/OlegDB/blob/master/c_src/oleg.c#L480
Quinlan Pfiffer commented
This could be fixed by compacting the values file in addition to the AOL file. This would also fix #101.