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
allow random writes for mem chunk
chrislu313fd17ae436
diff --git a/weed/mount/page_writer/upload_pipeline.go b/weed/mount/page_writer/upload_pipeline.goindex e1aa43fe2a..f326445a36 100644--- a/weed/mount/page_writer/upload_pipeline.go+++ b/weed/mount/page_writer/upload_pipeline.go@@ -94,8 +94,7 @@ func (up *UploadPipeline) SaveDataAt(p []byte, off int64, isSequential bool, tsNup.moveToSealed(up.writableChunks[candidateChunkIndex], candidateChunkIndex)// fmt.Printf("flush chunk %d with %d bytes written\n", logicChunkIndex, oldestTs)}- if isSequential &&- len(up.writableChunks) < up.writableChunkLimit &&+ if len(up.writableChunks) < up.writableChunkLimit &&atomic.LoadInt64(&memChunkCounter) < 4*int64(up.writableChunkLimit) {pageChunk = NewMemChunk(logicChunkIndex, up.ChunkSize)} else {