From 2812cf5f35f2764036a62776b860e4304ac4c63f Mon Sep 17 00:00:00 2001 From: lihzeng Date: Tue, 24 Sep 2024 06:45:41 -0700 Subject: [PATCH] Need disable stream when become the leader --- src/raft_server.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raft_server.cxx b/src/raft_server.cxx index 730e7eae..1091795c 100644 --- a/src/raft_server.cxx +++ b/src/raft_server.cxx @@ -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(); }