diff --git a/src/hanoidb_reader.erl b/src/hanoidb_reader.erl index 79d5db3..fe266b3 100644 --- a/src/hanoidb_reader.erl +++ b/src/hanoidb_reader.erl @@ -261,7 +261,7 @@ close(#index{file=File}) -> lookup(#index{file=File, root=Node, bloom=Bloom}, Key) -> - case bloom:is_element(Bloom, Key) of + case bloom:is_element(Key, Bloom) of true -> case lookup_in_node(File, Node, Key) of not_found ->