From ffa5eb08c3d2d6499922e9f274cd3781757b1ef4 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Mon, 28 Jul 2014 16:02:56 -0700 Subject: [PATCH] server: apply ents when loading log --- etcd/participant.go | 1 + 1 file changed, 1 insertion(+) diff --git a/etcd/participant.go b/etcd/participant.go index 3ecc91450..e7c263b1e 100644 --- a/etcd/participant.go +++ b/etcd/participant.go @@ -130,6 +130,7 @@ func newParticipant(id int64, pubAddr string, raftPubAddr string, dir string, cl } p.id = n.Id 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) } p.w = w