Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 9124d80db5e81cf7dd7690b7b41d2961be04b4ca 1 parent 25d69ad
@jonmeredith jonmeredith authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.