aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-26 14:59:03 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-26 14:59:03 -0800
commitb11449f95588beb8373b1f8bc5753fb45d2dc405 (patch)
tree4e06875c93aea9a4dbbf210aadbcd7ad4355e2d8 /weed/command/server.go
parent0d345ac97d941bef0991c0cb08632ccf08c0ee83 (diff)
downloadseaweedfs-b11449f95588beb8373b1f8bc5753fb45d2dc405.tar.xz
seaweedfs-b11449f95588beb8373b1f8bc5753fb45d2dc405.zip
pass in dir.idx parameter to DiskLocation
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 4a9c2411a..0c6731eb2 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -105,6 +105,7 @@ func init() {
serverOptions.v.publicUrl = cmdServer.Flag.String("volume.publicUrl", "", "publicly accessible address")
serverOptions.v.preStopSeconds = cmdServer.Flag.Int("volume.preStopSeconds", 10, "number of seconds between stop send heartbeats and stop volume server")
serverOptions.v.pprof = cmdServer.Flag.Bool("volume.pprof", false, "enable pprof http handlers. precludes --memprofile and --cpuprofile")
+ serverOptions.v.idxFolder = cmdServer.Flag.String("volume.dir.idx", "", "directory to store .idx files")
s3Options.port = cmdServer.Flag.Int("s3.port", 8333, "s3 server http listen port")
s3Options.domainName = cmdServer.Flag.String("s3.domainName", "", "suffix of the host name in comma separated list, {bucket}.{domainName}")