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 API
Chris Lu8f8e9ddbde6e
diff --git a/weed/filer/reader_at.go b/weed/filer/reader_at.goindex af6f688e7b..17a1ba5179 100644--- a/weed/filer/reader_at.go+++ b/weed/filer/reader_at.go@@ -142,7 +142,7 @@ func (c *ChunkReadAt) doReadAt(p []byte, offset int64) (n int, err error) {}-func (c *ChunkReadAt) readFromWholeChunkData(chunkView, nextChunkView *ChunkView) (chunkData []byte, err error) {+func (c *ChunkReadAt) readFromWholeChunkData(chunkView *ChunkView, nextChunkViews... *ChunkView) (chunkData []byte, err error) {if c.lastChunkFileId == chunkView.FileId {return c.lastChunkData, nil@@ -160,8 +160,10 @@ func (c *ChunkReadAt) readFromWholeChunkData(chunkView, nextChunkView *ChunkViewc.lastChunkFileId = chunkView.FileIdgo func() {- if c.chunkCache != nil && nextChunkView != nil {- c.readOneWholeChunk(nextChunkView)+ for _, nextChunkView := range nextChunkViews {+ if c.chunkCache != nil && nextChunkView != nil {+ c.readOneWholeChunk(nextChunkView)+ }}}()