Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_set_forwarding crashes [JIRA: RIAK-1459] #693

Merged
merged 1 commit into from
Dec 31, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/riak_core_vnode.erl
Expand Up @@ -421,7 +421,7 @@ vnode_handoff_command(Sender, Request, ForwardTo,
continue(State, NewModState);
{forward, NewReq, NewModState} ->
forward_request(HOType, NewReq, HOTarget, ForwardTo, Sender, State),
continue(State, NewModState);
continue(State, NewModState);
{drop, NewModState} ->
continue(State, NewModState);
{stop, Reason, NewModState} ->
Expand Down Expand Up @@ -1044,6 +1044,8 @@ is_request_forwardable(_) ->
%% v4 and v27 as well as any other vnode request type.
true.

mod_set_forwarding(_Forward, State=#state{modstate={deleted,_}}) ->
State;
mod_set_forwarding(Forward, State=#state{mod=Mod, modstate=ModState}) ->
case lists:member({set_vnode_forwarding, 2}, Mod:module_info(exports)) of
true ->
Expand Down