mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
confchange: clean up unnecessary block
This commit is contained in:
parent
7948f39790
commit
a5f785a232
@ -62,10 +62,7 @@ func (c Changer) EnterJoint(autoLeave bool, ccs ...pb.ConfChangeSingle) (tracker
|
||||
return c.err(err)
|
||||
}
|
||||
// Clear the outgoing config.
|
||||
{
|
||||
*outgoingPtr(&cfg.Voters) = quorum.MajorityConfig{}
|
||||
|
||||
}
|
||||
*outgoingPtr(&cfg.Voters) = quorum.MajorityConfig{}
|
||||
// Copy incoming to outgoing.
|
||||
for id := range incoming(cfg.Voters) {
|
||||
outgoing(cfg.Voters)[id] = struct{}{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user