etcdserver: add discovery warning message

release-2.0
Jonathan Boulle 2014-10-08 16:09:12 -07:00
parent b4a7680bc4
commit 682008724d
1 changed files with 3 additions and 0 deletions

View File

@ -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 {