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
unlock before submitting the uploading jobs
chrisluf7beba8515dd
diff --git a/weed/mount/page_writer/upload_pipeline.go b/weed/mount/page_writer/upload_pipeline.goindex f54a87a02a..bce062a6e8 100644--- a/weed/mount/page_writer/upload_pipeline.go+++ b/weed/mount/page_writer/upload_pipeline.go@@ -73,8 +73,9 @@ func (up *UploadPipeline) SaveDataAt(p []byte, off int64, isSequential bool) (nfullness = chunkFullness}}- up.moveToSealed(up.writableChunks[fullestChunkIndex], fullestChunkIndex)+ fullWritableChunk := up.writableChunks[fullestChunkIndex]delete(up.writableChunks, fullestChunkIndex)+ up.moveToSealed(fullWritableChunk, fullestChunkIndex)// fmt.Printf("flush chunk %d with %d bytes written\n", logicChunkIndex, fullness)}if isSequential &&@@ -155,6 +156,8 @@ func (up *UploadPipeline) moveToSealed(memChunk PageChunk, logicChunkIndex Logicup.sealedChunks[logicChunkIndex] = sealedChunkdelete(up.writableChunks, logicChunkIndex)+ // unlock before submitting the uploading jobs+ up.chunksLock.Unlock()up.uploaders.Execute(func() {// first add to the file chunkssealedChunk.chunk.SaveContent(up.saveToStorageFn)@@ -181,6 +184,7 @@ func (up *UploadPipeline) moveToSealed(memChunk PageChunk, logicChunkIndex LogicsealedChunk.FreeReference(fmt.Sprintf("%s finished uploading chunk %d", up.filepath, logicChunkIndex))})+ up.chunksLock.Lock()}func (up *UploadPipeline) Shutdown() {