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

gen_fsm replaced by gen_statem in vnode #80

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
woelki committed Sep 14, 2020
commit 6c5547f337a7dc0f642c99f7d1b65b0cc5328bbc
19 changes: 10 additions & 9 deletions src/riak_core_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,6 @@ active(cast, cancel_handoff,
handoff_type = undefined,
modstate = NewModState})
end;
%% 13
active(cast,
#riak_coverage_req_v1{keyspaces = KeySpaces,
request = Request, sender = Sender},
State) ->
%% Coverage request handled in handoff and non-handoff. Will be forwarded if set.
vnode_coverage(Sender, Request, KeySpaces, State);
%% #16
active(cast, handoff_complete, State) ->
State2 = start_manager_event_timer(handoff_complete,
Expand Down Expand Up @@ -677,6 +670,14 @@ active(cast, {send_manager_event, Event}, State) ->
State2 = start_manager_event_timer(Event, State),
continue(State2);

%% 13
active(_C,
#riak_coverage_req_v1{keyspaces = KeySpaces,
request = Request, sender = Sender},
State) ->
%% Coverage request handled in handoff and non-handoff. Will be forwarded if set.
vnode_coverage(Sender, Request, KeySpaces, State);

%% forward_request
active(_C,
#riak_vnode_req_v1{sender = Sender,
Expand Down Expand Up @@ -721,8 +722,8 @@ active(_C,
_Other -> vnode_command(Sender, Request, State)
end
end;
%%
active(_C,
%%
active(cast,
#riak_vnode_req_v1{sender = Sender, request = Request},
State) ->
vnode_handoff_command(Sender,
Expand Down