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
remove dup code for section.reader access (#6169)
Bruce15fc58bfd99e
diff --git a/weed/filer/filechunk_section.go b/weed/filer/filechunk_section.goindex ba591d9acc..75273a1ca4 100644--- a/weed/filer/filechunk_section.go+++ b/weed/filer/filechunk_section.go@@ -1,8 +1,9 @@package filerimport (- "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb""sync"++ "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb")const SectionSize = 2 * 1024 * 1024 * 32 // 64MiB@@ -62,11 +63,6 @@ func removeGarbageChunks(section *FileChunkSection, garbageFileIds map[string]st}func (section *FileChunkSection) setupForRead(group *ChunkGroup, fileSize int64) {- if section.isPrepared {- section.reader.fileSize = fileSize- return- }-section.lock.Lock()defer section.lock.Unlock()