Add comments
This commit is contained in:
parent
b571be9e43
commit
a12931b430
1 changed files with 7 additions and 2 deletions
|
@ -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) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue