Permalink
Browse files

A fix for riak_kv_gb_trees_backend module obviates the need for an

extra terminate pattern that avoids calling Mod:termiate.
  • Loading branch information...
1 parent 5b59cbd commit b33be1d026c97da65e2f01ddb0c4dc4f668ef430 @kellymclaughlin kellymclaughlin committed Mar 15, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/riak_core_vnode.erl
@@ -197,8 +197,6 @@ handle_info({'EXIT', Pid, Reason}, StateName, State=#state{mod=Mod}) ->
handle_info(_Info, StateName, State) ->
{next_state, StateName, State, State#state.inactivity_timeout}.
-terminate(process_crash, _StateName, _State) ->
- process_crash;
terminate(Reason, _StateName, #state{mod=Mod, modstate=ModState}) ->
Mod:terminate(Reason, ModState),
ok.

0 comments on commit b33be1d

Please sign in to comment.