aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorzhangsong <songz.qqmail@qq.com>2021-06-30 17:28:37 +0800
committerzhangsong <songz.qqmail@qq.com>2021-06-30 17:28:37 +0800
commit7566782c2e172408bbbfd32bb5c3b505bfd8d5e1 (patch)
tree14a84954ec03ccb430cafe8b21b959478ba32719 /weed/server/volume_server.go
parente9eb15e56ae1a6df23df38e195c3d702e6f48e03 (diff)
downloadseaweedfs-7566782c2e172408bbbfd32bb5c3b505bfd8d5e1.tar.xz
seaweedfs-7566782c2e172408bbbfd32bb5c3b505bfd8d5e1.zip
add proxy mode to read non-local volumes
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index f7359ea6b..74c5f72c6 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -28,7 +28,7 @@ type VolumeServer struct {
needleMapKind storage.NeedleMapKind
FixJpgOrientation bool
- ReadRedirect bool
+ ReadMode string
compactionBytePerSecond int64
metricsAddress string
metricsIntervalSec int
@@ -50,7 +50,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
dataCenter string, rack string,
whiteList []string,
fixJpgOrientation bool,
- readRedirect bool,
+ readMode string,
compactionMBPerSecond int,
fileSizeLimitMB int,
concurrentUploadLimit int64,
@@ -72,7 +72,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
rack: rack,
needleMapKind: needleMapKind,
FixJpgOrientation: fixJpgOrientation,
- ReadRedirect: readRedirect,
+ ReadMode: readMode,
grpcDialOption: security.LoadClientTLS(util.GetViper(), "grpc.volume"),
compactionBytePerSecond: int64(compactionMBPerSecond) * 1024 * 1024,
fileSizeLimitBytes: int64(fileSizeLimitMB) * 1024 * 1024,