Use a more accurate bloom (larger)

This commit is contained in:
Gregory Burd 2012-06-24 21:40:18 +05:30
parent 244aeb0f0b
commit 848ea1e976

View file

@ -94,7 +94,7 @@ init([Name, Options]) ->
case do_open(Name, Options, [exclusive]) of
{ok, IdxFile} ->
file:write(IdxFile, ?FILE_FORMAT),
Bloom = bloom:new(erlang:min(Size, 16#ffffffff), 0.01),
Bloom = bloom:new(erlang:min(Size, 16#ffffffff), 0.001),
BlockSize = hanoidb:get_opt(block_size, Options, ?NODE_SIZE),
{ok, #state{ name=Name,
index_file_pos=?FIRST_BLOCK_POS, index_file=IdxFile,