ensure entry view cache is invalidated

This commit is contained in:
chrislu
2022-01-17 23:02:30 -08:00
parent f4ad63528a
commit b2acfd75e9
2 changed files with 9 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, error) {
}
var chunkResolveErr error
if true || fh.entryViewCache == nil {
if fh.entryViewCache == nil {
fh.entryViewCache, chunkResolveErr = filer.NonOverlappingVisibleIntervals(fh.f.wfs.LookupFn(), entry.Chunks, 0, math.MaxInt64)
if chunkResolveErr != nil {
return 0, fmt.Errorf("fail to resolve chunk manifest: %v", chunkResolveErr)