diff options
Diffstat (limited to 'weed/mount/weedfs.go')
| -rw-r--r-- | weed/mount/weedfs.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go index 9f1d85ab5..7cff71c52 100644 --- a/weed/mount/weedfs.go +++ b/weed/mount/weedfs.go @@ -135,10 +135,11 @@ func (wfs *WFS) maybeReadEntry(inode uint64) (path util.FullPath, fh *FileHandle } var found bool if fh, found = wfs.fhmap.FindFileHandle(inode); found { - entry = fh.GetEntry() - if entry != nil && fh.entry.Attributes == nil { - entry.Attributes = &filer_pb.FuseAttributes{} - } + entry = fh.UpdateEntry(func(entry *filer_pb.Entry) { + if entry != nil && fh.entry.Attributes == nil { + entry.Attributes = &filer_pb.FuseAttributes{} + } + }) } else { entry, status = wfs.maybeLoadEntry(path) } |
