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;
not_found ->
none
end.
end;
lookup_node(_,_,none,_) ->
none.
first_node(#index{file=File}) ->