diff options
| author | liubaojiang <1838095916@qq.com> | 2022-06-16 14:07:11 +0800 |
|---|---|---|
| committer | liubaojiang <1838095916@qq.com> | 2022-06-16 14:07:11 +0800 |
| commit | df0ce31a2ee87bf4550da20cf7c1095d154b24e3 (patch) | |
| tree | 344d1e78c058a6ae3f72c63c7be47c17810fb269 | |
| parent | 3076ac101ead13d58e7b6c065af65437e3aff9cd (diff) | |
| download | seaweedfs-df0ce31a2ee87bf4550da20cf7c1095d154b24e3.tar.xz seaweedfs-df0ce31a2ee87bf4550da20cf7c1095d154b24e3.zip | |
add condition when inFlightUploadDataLimitCond signal
| -rw-r--r-- | weed/server/volume_server_handlers.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.go index ef37b48f5..293f36f14 100644 --- a/weed/server/volume_server_handlers.go +++ b/weed/server/volume_server_handlers.go @@ -79,7 +79,9 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Reque atomic.AddInt64(&vs.inFlightUploadDataSize, contentLength) defer func() { atomic.AddInt64(&vs.inFlightUploadDataSize, -contentLength) - vs.inFlightUploadDataLimitCond.Signal() + if vs.concurrentUploadLimit != 0 { + vs.inFlightUploadDataLimitCond.Signal() + } }() // processs uploads |
