Browse Source

add condition when inFlightUploadDataLimitCond signal

pull/3081/head
liubaojiang 3 years ago
parent
commit
df0ce31a2e
  1. 2
      weed/server/volume_server_handlers.go

2
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)
if vs.concurrentUploadLimit != 0 {
vs.inFlightUploadDataLimitCond.Signal()
}
}()
// processs uploads

Loading…
Cancel
Save