Permalink
Browse files

Call eleveldb:close on vnode stop for eleveldb backend.

This will have the consequence of failing any running folds
at the point the vnode shuts down rather than allowing them
to complete.
  • Loading branch information...
1 parent 25d69ad commit 9124d80db5e81cf7dd7690b7b41d2961be04b4ca @jonmeredith jonmeredith committed Jul 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/riak_kv_eleveldb_backend.erl
View
4 src/riak_kv_eleveldb_backend.erl
@@ -106,8 +106,8 @@ start(Partition, Config) ->
%% @doc Stop the eleveldb backend
-spec stop(state()) -> ok.
-stop(_State) ->
- %% No-op; GC handles cleanup
+stop(State) ->
+ eleveldb:close(State#state.ref),
ok.
%% @doc Retrieve an object from the eleveldb backend

0 comments on commit 9124d80

Please sign in to comment.