From 04ba79407adc31a08f1f33fe0461a7106062c24d Mon Sep 17 00:00:00 2001
From: Jason Wilder <mail@jasonwilder.com>
Date: Tue, 16 Feb 2016 21:26:34 -0700
Subject: [PATCH] Add join config option back

---
 services/meta/config.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/services/meta/config.go b/services/meta/config.go
index 1152c21e42..0eb167ecc4 100644
--- a/services/meta/config.go
+++ b/services/meta/config.go
@@ -50,7 +50,7 @@ type Config struct {
 
 	// RemoteHostname is the hostname portion to use when registering meta node
 	// addresses.  This hostname must be resolvable from other nodes.
-	RemoteHostname string
+	RemoteHostname string `toml:"-"`
 
 	// this is deprecated. Should use the address from run/config.go
 	BindAddress string `toml:"bind-address"`
@@ -61,7 +61,7 @@ type Config struct {
 	HTTPSCertificate string `toml:"https-certificate"`
 
 	// JoinPeers if specified gives other metastore servers to join this server to the cluster
-	JoinPeers            []string      `toml:"-"`
+	JoinPeers            []string      `toml:"join"`
 	RetentionAutoCreate  bool          `toml:"retention-autocreate"`
 	ElectionTimeout      toml.Duration `toml:"election-timeout"`
 	HeartbeatTimeout     toml.Duration `toml:"heartbeat-timeout"`
@@ -89,6 +89,7 @@ func NewConfig() *Config {
 		RaftPromotionEnabled: DefaultRaftPromotionEnabled,
 		LeaseDuration:        toml.Duration(DefaultLeaseDuration),
 		LoggingEnabled:       DefaultLoggingEnabled,
+		JoinPeers:            []string{},
 	}
 }