diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-01-19 12:31:56 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-01-19 12:31:56 -0800 |
| commit | 2f15e9346696d18032b9d2bfffe459635cb36171 (patch) | |
| tree | 3236719ecbdcb9c1ed6f1e84eff86aa5ccf374ce /weed/filesys/xattr.go | |
| parent | 04019aa161dcfe04511da41e198c9d3b5b1b66dc (diff) | |
| download | seaweedfs-2f15e9346696d18032b9d2bfffe459635cb36171.tar.xz seaweedfs-2f15e9346696d18032b9d2bfffe459635cb36171.zip | |
mount: rename also clear the cache
fix https://github.com/chrislusf/seaweedfs/issues/1182
Diffstat (limited to 'weed/filesys/xattr.go')
| -rw-r--r-- | weed/filesys/xattr.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/filesys/xattr.go b/weed/filesys/xattr.go index 8857c33d6..a81f74638 100644 --- a/weed/filesys/xattr.go +++ b/weed/filesys/xattr.go @@ -2,7 +2,6 @@ package filesys import ( "context" - "path/filepath" "github.com/chrislusf/seaweedfs/weed/filer2" "github.com/chrislusf/seaweedfs/weed/glog" @@ -110,7 +109,7 @@ func listxattr(entry *filer_pb.Entry, req *fuse.ListxattrRequest, resp *fuse.Lis func (wfs *WFS) maybeLoadEntry(ctx context.Context, dir, name string) (entry *filer_pb.Entry, err error) { - fullpath := filepath.Join(dir, name) + fullpath := string(filer2.NewFullPath(dir, name)) item := wfs.listDirectoryEntriesCache.Get(fullpath) if item != nil && !item.Expired() { entry = item.Value().(*filer_pb.Entry) |
