diff options
| author | chrislu <chris.lu@gmail.com> | 2022-03-23 22:53:58 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-03-23 22:53:58 -0700 |
| commit | 0562fceb9925f6c2cd13b68f24d29dd1fd4c3e5e (patch) | |
| tree | 9e9bba2cdfb31e207497e0b997c852809b4a54d1 /weed/server/volume_server.go | |
| parent | 8b983729caecabd1227d7f926f0fb5a649171c54 (diff) | |
| download | seaweedfs-0562fceb9925f6c2cd13b68f24d29dd1fd4c3e5e.tar.xz seaweedfs-0562fceb9925f6c2cd13b68f24d29dd1fd4c3e5e.zip | |
volume: fail fast if too many concurrent requests, to avoid dead lock due to replication.
fix https://github.com/chrislusf/seaweedfs/issues/2755
Diffstat (limited to 'weed/server/volume_server.go')
| -rw-r--r-- | weed/server/volume_server.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 4199ae36b..0e49af4a9 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -84,7 +84,6 @@ 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, |
