Ben Darnell fbeb58d265 raft: no-op instead of panic for Campaigning while leader
We need to be able to force an election (on one node) after creating a
new group (cockroachdb/cockroach#1384), but it is difficult to ensure
that our call to Campaign does not race with an election that may be
started by raft itself. A redundant call to Campaign should be a no-op
instead of a panic. (But the panic in becomeCandidate remains, because
we don't want to update the term or change the committed index in this
case)
2015-11-16 21:44:14 -05:00
..
2015-09-03 15:32:25 -07:00
2015-09-15 14:09:01 -07:00
2015-09-12 12:17:02 -07:00
2015-09-21 06:13:33 +02:00
2015-03-23 09:55:19 -07:00
2015-03-18 15:59:30 -07:00
2015-03-18 15:59:30 -07:00