Lines Matching refs:RaftState
1295 handle_state_enter(RaftState, #{cfg := #cfg{effective_machine_module = MacMod},
1297 {become(RaftState, State),
1298 ra_machine:state_enter(MacMod, RaftState, MacState)}.
1364 handle_aux(RaftState, Type, Cmd, #{cfg := #cfg{effective_machine_module = MacMod},
1367 case ra_machine:handle_aux(MacMod, RaftState, Type, Cmd, Aux0,
1370 {RaftState, State0#{log => Log, aux_state => Aux},
1373 {RaftState, State0#{log => Log, aux_state => Aux},
1376 {RaftState, State0#{log => Log, aux_state => Aux}, []};
1378 {RaftState, State0#{log => Log, aux_state => Aux}, Effects};
1380 {RaftState, State0, []}
1742 handle_down(RaftState, snapshot_writer, Pid, Info,
1755 {RaftState, State#{log => Log}, []};
1756 handle_down(RaftState, log, Pid, Info, #{log := Log0} = State) ->
1758 {RaftState, State#{log => Log}, Effects};
1759 handle_down(RaftState, aux, Pid, Info, State)
1761 handle_aux(RaftState, cast, {down, Pid, Info}, State);
1762 handle_down(RaftState, Type, Pid, Info, #{cfg := #cfg{log_id = LogId}} = State) ->
1765 {RaftState, State, []}.
1778 handle_node_status(RaftState, aux, Node, Status, _Infos, State)
1780 handle_aux(RaftState, cast, {Status, Node}, State);
1781 handle_node_status(RaftState, Type, Node, Status, _Info,
1785 {RaftState, State, []}.