update fuse client log which should output the fh of FileHandle. (#4404)
This commit is contained in:
@@ -27,7 +27,6 @@ type FileHandle struct {
|
|||||||
dirtyPages *PageWriter
|
dirtyPages *PageWriter
|
||||||
reader *filer.ChunkReadAt
|
reader *filer.ChunkReadAt
|
||||||
contentType string
|
contentType string
|
||||||
handle uint64
|
|
||||||
sync.RWMutex
|
sync.RWMutex
|
||||||
|
|
||||||
isDeleted bool
|
isDeleted bool
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ func (wfs *WFS) doFlush(fh *FileHandle, uid, gid uint32) fuse.Status {
|
|||||||
fileFullPath := fh.FullPath()
|
fileFullPath := fh.FullPath()
|
||||||
dir, name := fileFullPath.DirAndName()
|
dir, name := fileFullPath.DirAndName()
|
||||||
// send the data to the OS
|
// 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 !wfs.IsOverQuota {
|
||||||
if err := fh.dirtyPages.FlushData(); err != nil {
|
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 {
|
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
|
return fuse.EIO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user