mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
main: clarify fatal message for unexpect nodeid
This commit is contained in:
parent
f3348d6e13
commit
4a02a1a60c
2
main.go
2
main.go
@ -96,7 +96,7 @@ func startRaft(id int64, peerIds []int64, waldir string) (raft.Node, *wal.WAL) {
|
||||
wid, st, ents, err := w.ReadAll()
|
||||
// TODO(xiangli): save/recovery nodeID?
|
||||
if wid != 0 {
|
||||
log.Fatal("unimplemented: nodeid")
|
||||
log.Fatalf("unexpected nodeid %d: nodeid should always be zero until we save nodeid into wal", wid)
|
||||
}
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user