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
weed mount caching
chrisluf23015ac5ba0
diff --git a/weed/filer/reader_cache.go b/weed/filer/reader_cache.goindex fea2bbc892..a3df8e0bdf 100644--- a/weed/filer/reader_cache.go+++ b/weed/filer/reader_cache.go@@ -7,9 +7,9 @@ import ("time""github.com/seaweedfs/seaweedfs/weed/util/chunk_cache"+ util_http "github.com/seaweedfs/seaweedfs/weed/util/http""github.com/seaweedfs/seaweedfs/weed/util/mem""github.com/seaweedfs/seaweedfs/weed/wdclient"- util_http "github.com/seaweedfs/seaweedfs/weed/util/http")type ReaderCache struct {@@ -69,7 +69,7 @@ func (rc *ReaderCache) MaybeCache(chunkViews *Interval[*ChunkView]) {// glog.V(4).Infof("prefetch %s offset %d", chunkView.FileId, chunkView.ViewOffset)// cache this chunk if not yet- cacher := newSingleChunkCacher(rc, chunkView.FileId, chunkView.CipherKey, chunkView.IsGzipped, int(chunkView.ChunkSize), false)+ cacher := newSingleChunkCacher(rc, chunkView.FileId, chunkView.CipherKey, chunkView.IsGzipped, int(chunkView.ChunkSize), chunkView.ViewOffset == 0)go cacher.startCaching()<-cacher.cacheStartedChrc.downloaders[chunkView.FileId] = cacher