Add comments
This commit is contained in:
parent
b571be9e43
commit
a12931b430
1 changed files with 7 additions and 2 deletions
|
@ -1719,6 +1719,9 @@ read_slots(Handle, SlotList, {SegList, LowLastMod, BlockIndexCache},
|
|||
PressMethod,
|
||||
IdxModDate,
|
||||
[]),
|
||||
% There is no range passed through to the
|
||||
% binaryslot_reader, so this needs to
|
||||
% filtered
|
||||
FilterFun =
|
||||
fun(KV) -> in_range(KV, SK, EK) end,
|
||||
Acc ++ lists:filter(FilterFun, KVL)
|
||||
|
@ -1733,6 +1736,8 @@ read_slots(Handle, SlotList, {SegList, LowLastMod, BlockIndexCache},
|
|||
|
||||
-spec in_range(leveled_codec:ledger_kv(),
|
||||
range_endpoint(), range_endpoint()) -> boolean().
|
||||
%% @doc
|
||||
%% Is the ledger key in the range.
|
||||
in_range({_LK, _LV}, all, all) ->
|
||||
true;
|
||||
in_range({LK, _LV}, all, EK) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue