From fc22071a2fc4706548ae74c7ca5cef60ed7c3055 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 17 Jan 2022 14:02:37 -0800 Subject: [PATCH] more logs --- weed/filesys/filehandle.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index 8545be9b6..517d8b3d4 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -150,6 +150,9 @@ func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, error) { if reader == nil { chunkViews := filer.ViewFromVisibleIntervals(fh.entryViewCache, 0, math.MaxInt64) glog.V(4).Infof("file handle read %s [%d,%d) from %+v", fileFullPath, offset, offset+int64(len(buff)), chunkViews) + for _, chunkView := range chunkViews { + glog.V(4).Infof(" read %s [%d,%d) from chunk %+v", fileFullPath, chunkView.LogicOffset, chunkView.LogicOffset+int64(chunkView.Size), chunkView.FileId) + } reader = filer.NewChunkReaderAtFromClient(fh.f.wfs.LookupFn(), chunkViews, fh.f.wfs.chunkCache, fileSize) } fh.reader = reader