aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorStewart Miles <stewartamiles@gmail.com>2023-03-15 13:03:20 -0700
committerGitHub <noreply@github.com>2023-03-15 13:03:20 -0700
commitdd71f54c6b8355a35cda134173d9ebb76a53b62c (patch)
tree7cf89eebda151db9cae221cb9a1726333a84aac8 /weed/command/server.go
parent71b33faef0925307880cf6752f1825efb2a96430 (diff)
downloadseaweedfs-dd71f54c6b8355a35cda134173d9ebb76a53b62c.tar.xz
seaweedfs-dd71f54c6b8355a35cda134173d9ebb76a53b62c.zip
Fix -raftHashicorp and -raftBootstrap flag propagation. (#4309)
`weed server` was not correctly propagating `-master.raftHashicorp` and `-master.raftBootstrap` flags when starting the master server. Related to #4307
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index ba56d8897..978cea117 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -97,6 +97,7 @@ func init() {
masterOptions.metricsIntervalSec = cmdServer.Flag.Int("master.metrics.intervalSeconds", 15, "Prometheus push interval in seconds")
masterOptions.raftResumeState = cmdServer.Flag.Bool("master.resumeState", false, "resume previous state on start master server")
masterOptions.raftHashicorp = cmdServer.Flag.Bool("master.raftHashicorp", false, "use hashicorp raft")
+ masterOptions.raftBootstrap = cmdMaster.Flag.Bool("master.raftBootstrap", false, "Whether to bootstrap the Raft cluster")
masterOptions.heartbeatInterval = cmdServer.Flag.Duration("master.heartbeatInterval", 300*time.Millisecond, "heartbeat interval of master servers, and will be randomly multiplied by [1, 1.25)")
masterOptions.electionTimeout = cmdServer.Flag.Duration("master.electionTimeout", 10*time.Second, "election timeout of master servers")