mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: init lead to none
This commit is contained in:
parent
0ccd09532b
commit
bea28933d3
@ -141,7 +141,7 @@ type stateMachine struct {
|
||||
}
|
||||
|
||||
func newStateMachine(id int64, peers []int64) *stateMachine {
|
||||
sm := &stateMachine{id: id, log: newLog(), ins: make(map[int64]*index)}
|
||||
sm := &stateMachine{id: id, lead: none, log: newLog(), ins: make(map[int64]*index)}
|
||||
for _, p := range peers {
|
||||
sm.ins[p] = &index{}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user