From b068bc291dcf30ad73682eaf1884a7c4d9c7f560 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 17 Jan 2022 20:07:01 -0800 Subject: [PATCH] testing with always resetting entry view cache --- weed/filesys/filehandle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index 517d8b3d4..619d9a226 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -138,7 +138,7 @@ func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, error) { } var chunkResolveErr error - if fh.entryViewCache == nil { + if true || 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)