Permalink
Browse files

Revert commit 5abf93c per correspondence with Joe Caswell

  • Loading branch information...
1 parent 9c7a8bd commit f927f1edf4c11a9272adf1bc04be2caed0795396 @slfritchie slfritchie committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/bitcask.erl
View
@@ -543,7 +543,7 @@ merge1(Dirname, Opts, FilesToMerge) ->
%% Make sure to close the final output file
ok = bitcask_fileops:sync(State1#mstate.out_file),
- ok = bitcask_fileops:close(bitcask_fileops:close_for_writing(State1#mstate.out_file)),
+ ok = bitcask_fileops:close(State1#mstate.out_file),
%% Explicitly release our keydirs instead of waiting for GC
bitcask_nifs:keydir_release(LiveKeyDir),
@@ -950,7 +950,7 @@ inner_merge_write(K, V, Tstamp, State) ->
wrap ->
%% Close the current output file
ok = bitcask_fileops:sync(State#mstate.out_file),
- ok = bitcask_fileops:close(bitcask_fileops:close_for_writing(State#mstate.out_file)),
+ ok = bitcask_fileops:close(State#mstate.out_file),
%% Start our next file and update state
{ok, NewFile} = bitcask_fileops:create_file(

0 comments on commit f927f1e

Please sign in to comment.