add inFlightUploadDataLimitCond signal
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user