Browse Source

etcdserver: move "unsafe" flags to bottom

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
9af05a45d4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      etcdserver/config.go

+ 2 - 1
etcdserver/config.go

@@ -44,7 +44,6 @@ type ServerConfig struct {
 	InitialPeerURLsMap  types.URLsMap
 	InitialPeerURLsMap  types.URLsMap
 	InitialClusterToken string
 	InitialClusterToken string
 	NewCluster          bool
 	NewCluster          bool
-	ForceNewCluster     bool
 	PeerTLSInfo         transport.TLSInfo
 	PeerTLSInfo         transport.TLSInfo
 
 
 	// HostWhitelist lists acceptable hostnames from client requests.
 	// HostWhitelist lists acceptable hostnames from client requests.
@@ -80,6 +79,8 @@ type ServerConfig struct {
 	PreVote bool
 	PreVote bool
 
 
 	Debug bool
 	Debug bool
+
+	ForceNewCluster bool
 }
 }
 
 
 // VerifyBootstrap sanity-checks the initial config for bootstrap case
 // VerifyBootstrap sanity-checks the initial config for bootstrap case