Fix missing case in lookup_node

Doing range fold on an empty store triggered
this edge case.
This commit is contained in:
Kresten Krab Thorup 2012-09-10 00:23:33 +02:00
parent 19c37eb0a1
commit 72db206905

View file

@ -242,7 +242,10 @@ lookup_node(File,FromKey,#node{members=Members,level=N},_) ->
end; end;
not_found -> not_found ->
none none
end. end;
lookup_node(_,_,none,_) ->
none.
first_node(#index{file=File}) -> first_node(#index{file=File}) ->