Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #58 from joecaswell/jcaswell-crc

merge process should write CRC to hintfiles

Passes all EUnit tests and the new QC model, many thanks!
  • Loading branch information...
commit 5abf93c5bfe1f01c097a8446af096c70ef387111 2 parents de235ed + 420ef2f
@slfritchie slfritchie authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/bitcask.erl
View
4 src/bitcask.erl
@@ -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(State1#mstate.out_file),
+ ok = bitcask_fileops:close(bitcask_fileops:close_for_writing(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(State#mstate.out_file),
+ ok = bitcask_fileops:close(bitcask_fileops:close_for_writing(State#mstate.out_file)),
%% Start our next file and update state
{ok, NewFile} = bitcask_fileops:create_file(
Please sign in to comment.
Something went wrong with that request. Please try again.