mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: init prev: vote for none
This commit is contained in:
parent
e393509879
commit
d7a289ee41
@ -71,6 +71,7 @@ func (n *Node) run(r *raft) {
|
||||
|
||||
var lead int64
|
||||
var prev Ready
|
||||
prev.Vote = none
|
||||
for {
|
||||
if lead != r.lead {
|
||||
log.Printf("raft: leader changed from %#x to %#x", lead, r.lead)
|
||||
|
Loading…
x
Reference in New Issue
Block a user