diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-23 03:11:21 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-23 03:11:21 -0700 |
| commit | 6f8b3350078299e833a2bac644df151fc716abf8 (patch) | |
| tree | 293bdb4c584dd4226cd91afb91ae34fad4abc575 | |
| parent | f16375621f25995837868bd77e64a7d0da2ac68d (diff) | |
| download | seaweedfs-6f8b3350078299e833a2bac644df151fc716abf8.tar.xz seaweedfs-6f8b3350078299e833a2bac644df151fc716abf8.zip | |
fix duplicated flags
| -rw-r--r-- | weed/command/server.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index 04e307835..983e45175 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -82,7 +82,6 @@ func init() { masterOptions.peers = cmdServer.Flag.String("master.peers", "", "all master nodes in comma separated ip:masterPort list") masterOptions.volumeSizeLimitMB = cmdServer.Flag.Uint("master.volumeSizeLimitMB", 30*1000, "Master stops directing writes to oversized volumes.") masterOptions.volumePreallocate = cmdServer.Flag.Bool("master.volumePreallocate", false, "Preallocate disk space for volumes.") - masterOptions.pulseSeconds = cmdServer.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats") masterOptions.defaultReplication = cmdServer.Flag.String("master.defaultReplication", "000", "Default replication type if not specified.") masterOptions.garbageThreshold = cmdServer.Flag.Float64("garbageThreshold", 0.3, "threshold to vacuum and reclaim spaces") @@ -144,7 +143,9 @@ func runServer(cmd *Command, args []string) bool { serverOptions.v.idleConnectionTimeout = serverTimeout serverOptions.v.dataCenter = serverDataCenter serverOptions.v.rack = serverRack + serverOptions.v.pulseSeconds = pulseSeconds + masterOptions.pulseSeconds = pulseSeconds masterOptions.whiteList = serverWhiteListOption |
