SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Revert "adjust conditions"
chrisluaaa9938353a0
diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.goindex f219dc9b96..293f36f14b 100644--- a/weed/server/volume_server_handlers.go+++ b/weed/server/volume_server_handlers.go@@ -59,8 +59,7 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.RequecontentLength := getContentLength(r)// exclude the replication from the concurrentUploadLimitMB- shouldWatchUploadLimit := r.URL.Query().Get("type") != "replicate" && vs.concurrentUploadLimit != 0- if shouldWatchUploadLimit {+ if r.URL.Query().Get("type") != "replicate" && vs.concurrentUploadLimit != 0 {startTime := time.Now()vs.inFlightUploadDataLimitCond.L.Lock()for vs.inFlightUploadDataSize > vs.concurrentUploadLimit {@@ -80,7 +79,7 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Requeatomic.AddInt64(&vs.inFlightUploadDataSize, contentLength)defer func() {atomic.AddInt64(&vs.inFlightUploadDataSize, -contentLength)- if shouldWatchUploadLimit {+ if vs.concurrentUploadLimit != 0 {vs.inFlightUploadDataLimitCond.Signal()}}()