mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd: do not generate id if next state is stop
This commit is contained in:
parent
0197ce4c66
commit
46eab903e9
@ -215,7 +215,9 @@ func (s *Server) Run() error {
|
||||
default:
|
||||
panic("unsupport mode")
|
||||
}
|
||||
s.id = genId()
|
||||
if next != stopMode {
|
||||
s.id = genId()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user