aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChengyu Liu <chengyu_l@126.com>2023-04-16 13:15:16 +0800
committerGitHub <noreply@github.com>2023-04-15 22:15:16 -0700
commit0f653d21531b063e9f828d9eac94e4c909f311d2 (patch)
tree782a7c7da8b47a5a6b30805010456f7f8bb219fd
parent0122e022eac2fea92b68af89dbbe175325359771 (diff)
downloadseaweedfs-0f653d21531b063e9f828d9eac94e4c909f311d2.tar.xz
seaweedfs-0f653d21531b063e9f828d9eac94e4c909f311d2.zip
update fuse client log which should output the fh of FileHandle. (#4404)
-rw-r--r--weed/mount/filehandle.go1
-rw-r--r--weed/mount/weedfs_file_sync.go4
2 files changed, 2 insertions, 3 deletions
diff --git a/weed/mount/filehandle.go b/weed/mount/filehandle.go
index fe038a258..6513d96ba 100644
--- a/weed/mount/filehandle.go
+++ b/weed/mount/filehandle.go
@@ -27,7 +27,6 @@ type FileHandle struct {
dirtyPages *PageWriter
reader *filer.ChunkReadAt
contentType string
- handle uint64
sync.RWMutex
isDeleted bool
diff --git a/weed/mount/weedfs_file_sync.go b/weed/mount/weedfs_file_sync.go
index 8b67f85c1..4254e3830 100644
--- a/weed/mount/weedfs_file_sync.go
+++ b/weed/mount/weedfs_file_sync.go
@@ -96,7 +96,7 @@ func (wfs *WFS) doFlush(fh *FileHandle, uid, gid uint32) fuse.Status {
fileFullPath := fh.FullPath()
dir, name := fileFullPath.DirAndName()
// send the data to the OS
- glog.V(4).Infof("doFlush %s fh %d", fileFullPath, fh.handle)
+ glog.V(4).Infof("doFlush %s fh %d", fileFullPath, fh.fh)
if !wfs.IsOverQuota {
if err := fh.dirtyPages.FlushData(); err != nil {
@@ -177,7 +177,7 @@ func (wfs *WFS) doFlush(fh *FileHandle, uid, gid uint32) fuse.Status {
}
if err != nil {
- glog.Errorf("%v fh %d flush: %v", fileFullPath, fh.handle, err)
+ glog.Errorf("%v fh %d flush: %v", fileFullPath, fh.fh, err)
return fuse.EIO
}