mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server: apply ents when loading log
This commit is contained in:
parent
a6132d459f
commit
ffa5eb08c3
@ -130,6 +130,7 @@ func newParticipant(id int64, pubAddr string, raftPubAddr string, dir string, cl
|
|||||||
}
|
}
|
||||||
p.id = n.Id
|
p.id = n.Id
|
||||||
p.node.Node = raft.Recover(n.Id, n.Ents, n.State, defaultHeartbeat, defaultElection)
|
p.node.Node = raft.Recover(n.Id, n.Ents, n.State, defaultHeartbeat, defaultElection)
|
||||||
|
p.apply(p.node.Next())
|
||||||
log.Printf("id=%x participant.load path=%s\n", p.id, walPath)
|
log.Printf("id=%x participant.load path=%s\n", p.id, walPath)
|
||||||
}
|
}
|
||||||
p.w = w
|
p.w = w
|
||||||
|
Loading…
x
Reference in New Issue
Block a user