Merge pull request #1245 from unihorn/155

main/raft: write addNode ConfChange entries in log when start raft
This commit is contained in:
Yicheng Qin
2014-10-06 17:00:28 -07:00
7 changed files with 51 additions and 23 deletions

View File

@ -132,6 +132,7 @@ func NewServer(cfg *ServerConfig) *EtcdServer {
if w, err = wal.Create(waldir); err != nil {
log.Fatal(err)
}
// TODO: add context for PeerURLs
n = raft.StartNode(m.ID, cfg.Cluster.IDs(), 10, 1)
} else {
var index int64