Add comments

This commit is contained in:
Martin Sumner 2018-11-15 01:06:37 +00:00
parent b571be9e43
commit a12931b430

View file

@ -1719,11 +1719,14 @@ read_slots(Handle, SlotList, {SegList, LowLastMod, BlockIndexCache},
PressMethod, PressMethod,
IdxModDate, IdxModDate,
[]), []),
% There is no range passed through to the
% binaryslot_reader, so this needs to
% filtered
FilterFun = FilterFun =
fun(KV) -> in_range(KV, SK, EK) end, fun(KV) -> in_range(KV, SK, EK) end,
Acc ++ lists:filter(FilterFun, KVL) Acc ++ lists:filter(FilterFun, KVL)
% Note check_blocks shouldreturn [] if % Note check_blocks shouldreturn [] if
% PositionList is empty % PositionList is empty
end end
end end
end end
@ -1733,6 +1736,8 @@ read_slots(Handle, SlotList, {SegList, LowLastMod, BlockIndexCache},
-spec in_range(leveled_codec:ledger_kv(), -spec in_range(leveled_codec:ledger_kv(),
range_endpoint(), range_endpoint()) -> boolean(). range_endpoint(), range_endpoint()) -> boolean().
%% @doc
%% Is the ledger key in the range.
in_range({_LK, _LV}, all, all) -> in_range({_LK, _LV}, all, all) ->
true; true;
in_range({LK, _LV}, all, EK) -> in_range({LK, _LV}, all, EK) ->