mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add condition when inFlightUploadDataLimitCond signal
This commit is contained in:
parent
3076ac101e
commit
df0ce31a2e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue