Merge Tree issue

The attempt to refcator the writer meant that files were never reaching
the max slots - and so we were only ever stopping when the lists were
exhausted.  This meant that the merge tree just had a C0 and a C1 file!
This commit is contained in:
martinsumner 2016-12-12 18:30:12 +00:00
parent ff0bf15c8f
commit 8ccd02e893

View file

@ -836,7 +836,7 @@ write_keys(Handle, KL1, KL2, LevelR, WriteFun, WState,
{complete_keywrite(Handle0, WState0, WriteFun), {[], []}};
{full, KL1Rem, KL2Rem} ->
write_keys(Handle, KL1Rem, KL2Rem, LevelR, WriteFun, WState,
{SlotC + 1, SlotT, SlotLists ++ [BlockKeyLists]})
{SlotC + 1, SlotT + 1, SlotLists ++ [BlockKeyLists]})
end.