diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-08-03 14:43:15 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-08-03 14:43:15 -0700 |
| commit | 7d1e9a6b8a45852881c872f1f752bcaa78520639 (patch) | |
| tree | fa08294e5291bcdb30fecdab619a7da4b577820c /go/weed/server.go | |
| parent | 320e946d5019b568c5877125681363d580a8593b (diff) | |
| download | seaweedfs-7d1e9a6b8a45852881c872f1f752bcaa78520639.tar.xz seaweedfs-7d1e9a6b8a45852881c872f1f752bcaa78520639.zip | |
add option to redirect moved or non-local volumes
fix https://github.com/chrislusf/seaweedfs/issues/168
Diffstat (limited to 'go/weed/server.go')
| -rw-r--r-- | go/weed/server.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/go/weed/server.go b/go/weed/server.go index b39ab7556..278afc520 100644 --- a/go/weed/server.go +++ b/go/weed/server.go @@ -70,6 +70,7 @@ var ( volumePulse = cmdServer.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats") volumeIndexType = cmdServer.Flag.String("volume.index", "memory", "Choose [memory|leveldb|boltdb] mode for memory~performance balance.") volumeFixJpgOrientation = cmdServer.Flag.Bool("volume.images.fix.orientation", true, "Adjust jpg orientation when uploading.") + volumeReadRedirect = cmdServer.Flag.Bool("volume.read.redirect", true, "Redirect moved or non-local volumes.") volumeServerPublicUrl = cmdServer.Flag.String("volume.publicUrl", "", "publicly accessible address") isStartingFiler = cmdServer.Flag.Bool("filer", false, "whether to start filer") @@ -251,7 +252,7 @@ func runServer(cmd *Command, args []string) bool { folders, maxCounts, volumeNeedleMapKind, *serverIp+":"+strconv.Itoa(*masterPort), *volumePulse, *serverDataCenter, *serverRack, - serverWhiteList, *volumeFixJpgOrientation, + serverWhiteList, *volumeFixJpgOrientation, *volumeReadRedirect, ) glog.V(0).Infoln("Start Seaweed volume server", util.VERSION, "at", *serverIp+":"+strconv.Itoa(*volumePort)) |
