mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: add discovery warning message
This commit is contained in:
parent
b4a7680bc4
commit
682008724d
@ -122,6 +122,9 @@ func NewServer(cfg *ServerConfig) *EtcdServer {
|
||||
// TODO: add context for PeerURLs
|
||||
n = raft.StartNode(m.ID, cfg.Cluster.IDs(), 10, 1)
|
||||
} else {
|
||||
if cfg.DiscoveryURL != "" {
|
||||
log.Printf("etcd: warn: ignoring discovery URL: etcd has already been initialized and has a valid log in %q", waldir)
|
||||
}
|
||||
var index int64
|
||||
snapshot, err := ss.Load()
|
||||
if err != nil && err != snap.ErrNoSnapshot {
|
||||
|
Loading…
x
Reference in New Issue
Block a user