Skip to content

Commit

Permalink
Need disable stream when become the leader
Browse files Browse the repository at this point in the history
  • Loading branch information
lihzeng committed Sep 24, 2024
1 parent 060c6df commit 2812cf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/raft_server.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ void raft_server::become_leader() {
// reconnect_client(*pp);

pp->set_next_log_idx(log_store_->next_slot());
pp->reset_stream();
enable_hb_for_peer(*pp);
pp->set_recovered();
}
Expand Down

0 comments on commit 2812cf5

Please sign in to comment.