mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server: not set participant status for peer that points to itself
This commit is contained in:
parent
01fdaea8a6
commit
394893ff92
@ -357,7 +357,9 @@ func (p *participant) apply(ents []raft.Entry) {
|
||||
log.Printf("id=%x participant.cluster.addNode peerAddErr=\"%v\"\n", p.id, err)
|
||||
break
|
||||
}
|
||||
if p.id != cfg.NodeId {
|
||||
peer.participate()
|
||||
}
|
||||
pp := path.Join(v2machineKVPrefix, fmt.Sprint(cfg.NodeId))
|
||||
p.Store.Set(pp, false, fmt.Sprintf("raft=%v&etcd=%v", cfg.Addr, string(cfg.Context)), store.Permanent)
|
||||
if p.id == cfg.NodeId {
|
||||
|
Loading…
x
Reference in New Issue
Block a user