mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 10:40:41 -07:00
Don't pre-vote, causes flapping on split vote
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -692,8 +692,6 @@ func (n *raft) campaign() error {
|
||||
if n.state == Leader {
|
||||
return errAlreadyLeader
|
||||
}
|
||||
// Pre-place our vote for ourselves.
|
||||
n.vote = n.id
|
||||
n.resetElect(randCampaignTimeout())
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user