Permalink
Browse files

Call eleveldb:close as added in basho/eleveldb#33

Should fix the MANIFEST missing race, and may help with occational
memory free coredumps we've been seeing.
  • Loading branch information...
1 parent e8eaa91 commit 4c43c68ce69860cc92722063e09fc0e338946dcf @jonmeredith jonmeredith committed Jul 18, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/riak_kv_eleveldb_backend.erl
@@ -277,6 +277,7 @@ fold_objects(FoldObjectsFun, Acc, Opts, #state{fold_opts=FoldOpts,
%% and return a fresh reference.
-spec drop(state()) -> {ok, state()} | {error, term(), state()}.
drop(State0) ->
+ eleveldb:close(State0#state.ref),
case eleveldb:destroy(State0#state.data_root, []) of
ok ->
case open_db(State0) of

0 comments on commit 4c43c68

Please sign in to comment.