infoforcefeed / OlegDB

Enough works to use this in production

Home Page:http://olegdb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Offsets during AOL replay can be incorrect

qpfiffer opened this issue · comments

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

This could be fixed by compacting the values file in addition to the AOL file. This would also fix #101.