mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
main: check the id read by from wal.
This commit is contained in:
parent
0461c517e4
commit
a3b6a646eb
5
main.go
5
main.go
@ -88,8 +88,11 @@ func startRaft(id int64, peerIds []int64, waldir string) (raft.Node, *wal.WAL) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
wid, st, ents, err := w.ReadAll()
|
||||
// TODO(xiangli): save/recovery nodeID?
|
||||
_, st, ents, err := w.ReadAll()
|
||||
if wid != 0 {
|
||||
log.Fatal("unimplemented: nodeid")
|
||||
}
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user