mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
raft: add more tracing to stepdown code
This commit is contained in:
@@ -884,9 +884,11 @@ void fsm::transfer_leadership() {
|
||||
}
|
||||
|
||||
void fsm::send_timeout_now(server_id id) {
|
||||
logger.trace("send_timeout_now[{}] send timeout_now to {}", _my_id, id);
|
||||
send_to(id, timeout_now{_current_term});
|
||||
leader_state().timeout_now_sent = true;
|
||||
if (leader_state().tracker.leader_progress() == nullptr) {
|
||||
logger.trace("send_timeout_now[{}] become follower", _my_id);
|
||||
become_follower({});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user