diff --git a/src/hanoidb_reader.erl b/src/hanoidb_reader.erl index d524318..10521bd 100644 --- a/src/hanoidb_reader.erl +++ b/src/hanoidb_reader.erl @@ -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}) ->