aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filechunk_section.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-01-16 22:43:02 -0800
committerchrislu <chris.lu@gmail.com>2023-01-16 22:43:02 -0800
commitbfe5d910c6fed2017298f8986f42075c7b55e33e (patch)
treebfe9af56164c5a5e5744c282d0b76bc0a582c336 /weed/filer/filechunk_section.go
parent11d055bfc1186c9f5d29e0143fd506ed700a19c3 (diff)
downloadseaweedfs-bfe5d910c6fed2017298f8986f42075c7b55e33e.tar.xz
seaweedfs-bfe5d910c6fed2017298f8986f42075c7b55e33e.zip
use one readerCache for the whole file
Diffstat (limited to 'weed/filer/filechunk_section.go')
-rw-r--r--weed/filer/filechunk_section.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/filechunk_section.go b/weed/filer/filechunk_section.go
index a80013f22..11d6e631a 100644
--- a/weed/filer/filechunk_section.go
+++ b/weed/filer/filechunk_section.go
@@ -74,7 +74,7 @@ func (section *FileChunkSection) setupForRead(group *ChunkGroup, fileSize int64)
}
if section.reader == nil {
- section.reader = NewChunkReaderAtFromClient(group.lookupFn, section.chunkViews, group.chunkCache, min(int64(section.sectionIndex+1)*SectionSize, fileSize))
+ section.reader = NewChunkReaderAtFromClient(group.readerCache, section.chunkViews, min(int64(section.sectionIndex+1)*SectionSize, fileSize))
}
section.reader.fileSize = fileSize
}