Remove overlapped case clause
This commit is contained in:
parent
feb3c2a524
commit
2458a90fb3
1 changed files with 5 additions and 4 deletions
|
@ -885,12 +885,13 @@ startup_scan_over_file(Handle, Position) ->
|
||||||
%% cdb file, and returns at the end the hashtree and the final Key seen in the
|
%% cdb file, and returns at the end the hashtree and the final Key seen in the
|
||||||
%% journal
|
%% journal
|
||||||
|
|
||||||
startup_filter(Key, ValueAsBin, Position, {Hashtree, LastKey}, _ExtractFun) ->
|
startup_filter(Key, ValueAsBin, Position, {Hashtree, _LastKey}, _ExtractFun) ->
|
||||||
case crccheck_value(ValueAsBin) of
|
case crccheck_value(ValueAsBin) of
|
||||||
true ->
|
true ->
|
||||||
{loop, {put_hashtree(Key, Position, Hashtree), Key}};
|
% This function is preceeded by a "safe read" of the key and value
|
||||||
false ->
|
% and so the crccheck should always be true, as a failed check
|
||||||
{stop, {Hashtree, LastKey}}
|
% should not reach this stage
|
||||||
|
{loop, {put_hashtree(Key, Position, Hashtree), Key}}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue