From 6cbc282be1dd574205bb91d5cdf20467d5211d73 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Mon, 6 Oct 2014 17:28:17 -0700 Subject: [PATCH] main: use a new cluster by default This is a safe default for now. Use it to make `./etcd` work again. --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 99bf4a242..c4d985fa4 100644 --- a/main.go +++ b/main.go @@ -59,11 +59,12 @@ var ( func init() { flag.Var(cluster, "initial-cluster", "Initial cluster configuration for bootstrapping") - flag.Var(clusterState, "initial-cluster-state", "Initial cluster configuration for bootstrapping") if err := cluster.Set("default=http://localhost:2380,default=http://localhost:7001"); err != nil { // Should never happen log.Panic(err) } + flag.Var(clusterState, "initial-cluster-state", "Initial cluster configuration for bootstrapping") + clusterState.Set(etcdserver.ClusterStateValueNew) flag.Var(flagtypes.NewURLsValue("http://localhost:2380,http://localhost:7001"), "advertise-peer-urls", "List of this member's peer URLs to advertise to the rest of the cluster") flag.Var(flagtypes.NewURLsValue("http://localhost:2379,http://localhost:4001"), "advertise-client-urls", "List of this member's client URLs to advertise to the rest of the cluster")