WIP: another bug

This commit is contained in:
Gregory Burd 2012-06-23 16:06:49 +01:00
parent 4bcd4b5de1
commit 246e891d01

View file

@ -81,7 +81,7 @@ open(Name, Config) ->
{ok, <<BloomSize:32/unsigned>>} = file:pread(File, FileInfo#file_info.size - 12, 4), {ok, <<BloomSize:32/unsigned>>} = file:pread(File, FileInfo#file_info.size - 12, 4),
{ok, BloomData} = file:pread(File, (FileInfo#file_info.size - 12 - BloomSize), BloomSize), {ok, BloomData} = file:pread(File, (FileInfo#file_info.size - 12 - BloomSize), BloomSize),
{ok, Bloom} = hanoidb_util:decode_bloom(BloomData), Bloom = hanoidb_util:decode_bloom(BloomData),
%% suck in the root %% suck in the root
{ok, Root} = read_node(File, RootPos), {ok, Root} = read_node(File, RootPos),