diff options
| author | Nikita Borzykh <sample@fastmail.com> | 2024-06-23 06:28:37 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 19:28:37 -0700 |
| commit | 64756c2d79874b2b078929a63243998d6b52b7b0 (patch) | |
| tree | 01c57716aa65531212e0bfc98433258aa0febed1 | |
| parent | 82ef66cc194fe3e4338d4746f0813b3582943ec6 (diff) | |
| download | seaweedfs-64756c2d79874b2b078929a63243998d6b52b7b0.tar.xz seaweedfs-64756c2d79874b2b078929a63243998d6b52b7b0.zip | |
fix: correct command flag for master.raftBootstrap option in server.go (#5701)
| -rw-r--r-- | weed/command/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index 503927629..41b9d0761 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -97,7 +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.raftBootstrap = cmdServer.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") |
