Don’t open exclusive when re-opening a merge file

This commit is contained in:
Kresten Krab Thorup 2014-11-26 12:44:50 +01:00
parent 3b6b0ce197
commit 71c4243701

View file

@ -182,7 +182,7 @@ deserialize(Binary) ->
do_open(Name, Options, OpenOpts) -> do_open(Name, Options, OpenOpts) ->
WriteBufferSize = hanoidb:get_opt(write_buffer_size, Options, 512 * 1024), WriteBufferSize = hanoidb:get_opt(write_buffer_size, Options, 512 * 1024),
file:open(hanoidb_util:index_file_name(Name), file:open(hanoidb_util:index_file_name(Name),
[raw, append, {delayed_write, WriteBufferSize, 2000}, exclusive | OpenOpts]). [raw, append, {delayed_write, WriteBufferSize, 2000} | OpenOpts]).
%% @doc flush pending nodes and write trailer %% @doc flush pending nodes and write trailer