aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs_dir_lookup.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-14 01:09:31 -0800
committerchrislu <chris.lu@gmail.com>2022-02-14 01:09:31 -0800
commitdbeeda812376eda39997cd814c3e7eefaf4ea686 (patch)
tree18e989645dec87c977d59ea0fdaea8b073244b17 /weed/mount/weedfs_dir_lookup.go
parent7286e525ad85dec877d506908a0ff35590b0f357 (diff)
downloadseaweedfs-dbeeda812376eda39997cd814c3e7eefaf4ea686.tar.xz
seaweedfs-dbeeda812376eda39997cd814c3e7eefaf4ea686.zip
listen for metadata updates
Diffstat (limited to 'weed/mount/weedfs_dir_lookup.go')
-rw-r--r--weed/mount/weedfs_dir_lookup.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/mount/weedfs_dir_lookup.go b/weed/mount/weedfs_dir_lookup.go
index 733e31908..30b61d75f 100644
--- a/weed/mount/weedfs_dir_lookup.go
+++ b/weed/mount/weedfs_dir_lookup.go
@@ -3,8 +3,8 @@ package mount
import (
"context"
"github.com/chrislusf/seaweedfs/weed/filer"
- "github.com/chrislusf/seaweedfs/weed/filesys/meta_cache"
"github.com/chrislusf/seaweedfs/weed/glog"
+ "github.com/chrislusf/seaweedfs/weed/mount/meta_cache"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/hanwen/go-fuse/v2/fuse"
)
@@ -50,7 +50,7 @@ func (wfs *WFS) Lookup(cancel <-chan struct{}, header *fuse.InHeader, name strin
return fuse.ENOENT
}
- inode := wfs.inodeToPath.Lookup(fullFilePath)
+ inode := wfs.inodeToPath.Lookup(fullFilePath, localEntry.IsDirectory())
wfs.outputFilerEntry(out, inode, localEntry)