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
adjust for data race
chrislu580a7fa685da
diff --git a/weed/server/filer_server_handlers_write_upload.go b/weed/server/filer_server_handlers_write_upload.goindex c4565b08be..519f989c05 100644--- a/weed/server/filer_server_handlers_write_upload.go+++ b/weed/server/filer_server_handlers_write_upload.go@@ -57,14 +57,14 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque// need to throttle used byte bufferbytesBufferLimitCond.L.Lock()for atomic.LoadInt64(&bytesBufferCounter) >= 4 {- glog.V(4).Infof("waiting for byte buffer %d", bytesBufferCounter)+ glog.V(4).Infof("waiting for byte buffer %d", atomic.LoadInt64(&bytesBufferCounter))bytesBufferLimitCond.Wait()}atomic.AddInt64(&bytesBufferCounter, 1)bytesBufferLimitCond.L.Unlock()bytesBuffer := bufPool.Get().(*bytes.Buffer)- glog.V(4).Infof("received byte buffer %d", bytesBufferCounter)+ glog.V(4).Infof("received byte buffer %d", atomic.LoadInt64(&bytesBufferCounter))limitedReader := io.LimitReader(partReader, int64(chunkSize))