diff options
| author | chrislu <chris.lu@gmail.com> | 2023-01-16 22:43:02 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-01-16 22:43:02 -0800 |
| commit | bfe5d910c6fed2017298f8986f42075c7b55e33e (patch) | |
| tree | bfe9af56164c5a5e5744c282d0b76bc0a582c336 /weed/filer/filechunk_section.go | |
| parent | 11d055bfc1186c9f5d29e0143fd506ed700a19c3 (diff) | |
| download | seaweedfs-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.go | 2 |
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 } |
