diff options
| author | chrislu <chris.lu@gmail.com> | 2022-01-17 14:02:37 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-01-17 14:02:37 -0800 |
| commit | fc22071a2fc4706548ae74c7ca5cef60ed7c3055 (patch) | |
| tree | 979d9cb9cf9c945b5d65f555d2f6c3fd2c554835 | |
| parent | 381f4e73a0c74172336b15b6ba410ff92725d1a7 (diff) | |
| download | seaweedfs-fc22071a2fc4706548ae74c7ca5cef60ed7c3055.tar.xz seaweedfs-fc22071a2fc4706548ae74c7ca5cef60ed7c3055.zip | |
more logs
| -rw-r--r-- | weed/filesys/filehandle.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
