Skip to content

Commit

Permalink
raft/c: notify waiters on follower state reset
Browse files Browse the repository at this point in the history
This typically happens when there is a stepdown and the downstream
consumers like recovery need to know about it.

(cherry picked from commit d0a562b)
  • Loading branch information
bharathv authored and vbotbuildovich committed Dec 5, 2024
1 parent 52e08d1 commit ae10b19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/v/raft/types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ void follower_index_metadata::reset() {
last_successful_received_seq = follower_req_seq{0};
inflight_append_request_count = 0;
last_sent_protocol_meta.reset();
follower_state_change.broadcast();
}

std::ostream& operator<<(std::ostream& o, const vnode& id) {
Expand Down

0 comments on commit ae10b19

Please sign in to comment.