mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 17:13:36 +08:00
add condition when inFlightUploadDataLimitCond signal
This commit is contained in:
@@ -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)
|
||||
if vs.concurrentUploadLimit != 0 {
|
||||
vs.inFlightUploadDataLimitCond.Signal()
|
||||
}
|
||||
}()
|
||||
|
||||
// processs uploads
|
||||
|
Reference in New Issue
Block a user