add inFlightUploadDataLimitCond signal

This commit is contained in:
liubaojiang 2022-05-20 15:19:35 +08:00
parent 1a41691b4c
commit 71b2e6223e

View file

@ -71,6 +71,7 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Reque
atomic.AddInt64(&vs.inFlightUploadDataSize, contentLength) atomic.AddInt64(&vs.inFlightUploadDataSize, contentLength)
defer func() { defer func() {
atomic.AddInt64(&vs.inFlightUploadDataSize, -contentLength) atomic.AddInt64(&vs.inFlightUploadDataSize, -contentLength)
vs.inFlightUploadDataLimitCond.Signal()
}() }()
// processs uploads // processs uploads