Remove raft.loadEnts and the ents parameter to raft.RestartNode.

The initial entries are now provided via the Storage interface.
This commit is contained in:
Ben Darnell
2014-11-12 18:31:19 -05:00
parent 147fd614ce
commit 54b07d7974
7 changed files with 21 additions and 32 deletions

View File

@ -54,7 +54,8 @@ func restartAsStandaloneNode(cfg *ServerConfig, index uint64, snapshot *raftpb.S
log.Printf("etcdserver: forcing restart of member %s in cluster %s at commit index %d", id, cfg.Cluster.ID(), st.Commit)
s := raft.NewMemoryStorage()
n := raft.RestartNode(uint64(id), 10, 1, snapshot, st, ents, s)
s.Append(ents)
n := raft.RestartNode(uint64(id), 10, 1, snapshot, st, s)
return id, n, s, w
}