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.
  • Loading branch information
bharathv committed Dec 5, 2024
1 parent 404c7a2 commit d0a562b
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 @@ -142,6 +142,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 d0a562b

Please sign in to comment.