confchange: removed duplicate check in confchange.Simple.

This commit is contained in:
Ilya Sevostyanov 2019-10-01 10:10:56 +03:00
parent 236ac2a905
commit d487b16de1
No known key found for this signature in database
GPG Key ID: 7154ABCE0D793443

View File

@ -142,9 +142,6 @@ func (c Changer) Simple(ccs ...pb.ConfChangeSingle) (tracker.Config, tracker.Pro
if n := symdiff(incoming(c.Tracker.Voters), incoming(cfg.Voters)); n > 1 {
return tracker.Config{}, nil, errors.New("more than one voter changed without entering joint config")
}
if err := checkInvariants(cfg, prs); err != nil {
return tracker.Config{}, tracker.ProgressMap{}, nil
}
return checkAndReturn(cfg, prs)
}