aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-05-09 00:32:21 -0700
committerChris Lu <chris.lu@gmail.com>2021-05-09 00:32:21 -0700
commit957e1a1bc115d26c626ffeaa207936b1fae5362f (patch)
treea7fa057677922f7908ca54fd60b5cab0765500ba
parent7ca75347ec71c815e7edfff42a53cbe4b57bc7dd (diff)
downloadseaweedfs-957e1a1bc115d26c626ffeaa207936b1fae5362f.tar.xz
seaweedfs-957e1a1bc115d26c626ffeaa207936b1fae5362f.zip
fuse: important: if filer -filer.path is not root, directory listing will fail
-rw-r--r--weed/util/bounded_tree/bounded_tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/bounded_tree/bounded_tree.go b/weed/util/bounded_tree/bounded_tree.go
index 137f690b8..ba7f1dcc4 100644
--- a/weed/util/bounded_tree/bounded_tree.go
+++ b/weed/util/bounded_tree/bounded_tree.go
@@ -41,7 +41,7 @@ func (t *BoundedTree) EnsureVisited(p util.FullPath, visitFn VisitNodeFunc) (vis
if t.root == nil {
return
}
- components := p.Split()
+ components := util.FullPath(p[len(t.baseDir):]).Split()
// fmt.Printf("components %v %d\n", components, len(components))
canDelete, err := t.ensureVisited(t.root, t.baseDir, components, 0, visitFn)
if err != nil {