Skip to content

Commit

Permalink
skip left nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshasselberg committed Apr 30, 2020
1 parent 51549bd commit 6751b76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agent/consul/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func (md *lanMergeDelegate) NotifyMerge(members []*serf.Member) error {
nodeMap := make(map[types.NodeID]string)
for _, m := range members {
if rawID, ok := m.Tags["id"]; ok && rawID != "" {
if m.Status == serf.StatusLeft {
continue
}

nodeID := types.NodeID(rawID)

// See if there's another node that conflicts with us.
Expand Down

0 comments on commit 6751b76

Please sign in to comment.