Skip to content

Commit

Permalink
etcdserver: skip when detect a removed peer
Browse files Browse the repository at this point in the history
Signed-off-by: Dat Tien Nguyen <[email protected]>
  • Loading branch information
datbeohbbh committed Mar 4, 2024
1 parent 1249d8d commit 05c294a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/etcdserver/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ func (r *raftNode) processMessages(ms []raftpb.Message) []raftpb.Message {
for i := len(ms) - 1; i >= 0; i-- {
if r.isIDRemoved(ms[i].To) {
ms[i].To = 0
continue
}

if ms[i].Type == raftpb.MsgAppResp {
Expand Down

0 comments on commit 05c294a

Please sign in to comment.