Skip to content

Commit

Permalink
Merge pull request etcd-io#17518 from datbeohbbh/fix/skip-when-detect…
Browse files Browse the repository at this point in the history
…-removed-peer

etcdserver: skip when detect a removed peer
  • Loading branch information
ahrtr authored Mar 5, 2024
2 parents 1249d8d + 46d59a2 commit 8c3bb5a
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 8c3bb5a

Please sign in to comment.