aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-09-17 10:50:06 -0700
committerchrislu <chris.lu@gmail.com>2022-09-17 10:50:06 -0700
commite264fa6e28fbf453d68bd49001e46f16a45e3591 (patch)
tree9db5913d12c8ccd770dbb777e981d1259f353651 /weed/server/volume_server.go
parentdcbded20bb554c1e7b9691790e31456eba35eba1 (diff)
downloadseaweedfs-e264fa6e28fbf453d68bd49001e46f16a45e3591.tar.xz
seaweedfs-e264fa6e28fbf453d68bd49001e46f16a45e3591.zip
volume server: rename readBufferSize to readBufferSizeMB
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 07bb0b9ee..8e20b0846 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -29,7 +29,7 @@ type VolumeServer struct {
inFlightDownloadDataLimitCond *sync.Cond
inflightUploadDataTimeout time.Duration
hasSlowRead bool
- readBufferSize int
+ readBufferSizeMB int
SeedMasterNodes []pb.ServerAddress
currentMaster pb.ServerAddress
@@ -67,7 +67,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
concurrentDownloadLimit int64,
inflightUploadDataTimeout time.Duration,
hasSlowRead bool,
- readBufferSize int,
+ readBufferSizeMB int,
) *VolumeServer {
v := util.GetViper()
@@ -98,7 +98,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
concurrentDownloadLimit: concurrentDownloadLimit,
inflightUploadDataTimeout: inflightUploadDataTimeout,
hasSlowRead: hasSlowRead,
- readBufferSize: readBufferSize,
+ readBufferSizeMB: readBufferSizeMB,
}
vs.SeedMasterNodes = masterNodes