aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorliubaojiang <1838095916@qq.com>2022-05-20 14:33:47 +0800
committerliubaojiang <1838095916@qq.com>2022-05-20 14:40:05 +0800
commit1a41691b4c17b36b8ad39491ce579547e1ee4c04 (patch)
treec2aa8976af3bf0323d3e654405b0c15789dae2e7 /weed/server/volume_server.go
parent3a8dadcc2d5bfc5edb63395bbfb4f502c8333114 (diff)
downloadseaweedfs-1a41691b4c17b36b8ad39491ce579547e1ee4c04.tar.xz
seaweedfs-1a41691b4c17b36b8ad39491ce579547e1ee4c04.zip
exclude replication from the concurrentUploadLimitMB
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index 477a3709c..e557cf76b 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -24,6 +24,7 @@ type VolumeServer struct {
inFlightDownloadDataSize int64
concurrentUploadLimit int64
concurrentDownloadLimit int64
+ inFlightUploadDataLimitCond *sync.Cond
inFlightDownloadDataLimitCond *sync.Cond
SeedMasterNodes []pb.ServerAddress
@@ -84,6 +85,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
fileSizeLimitBytes: int64(fileSizeLimitMB) * 1024 * 1024,
isHeartbeating: true,
stopChan: make(chan bool),
+ inFlightUploadDataLimitCond: sync.NewCond(new(sync.Mutex)),
inFlightDownloadDataLimitCond: sync.NewCond(new(sync.Mutex)),
concurrentUploadLimit: concurrentUploadLimit,
concurrentDownloadLimit: concurrentDownloadLimit,