aboutsummaryrefslogtreecommitdiff
path: root/weed/util/bounded_tree/bounded_tree.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-04-30 22:51:06 -0700
committerChris Lu <chris.lu@gmail.com>2021-04-30 22:51:06 -0700
commit3a86d4dbfded2fb34f0d9cb696a6c5ba9415be4f (patch)
treec7fecd3f9a514fa1c2b2c70b5ccb64b552f62273 /weed/util/bounded_tree/bounded_tree.go
parentd74cdf011553ae073d524a080f65f418c76ccaa7 (diff)
downloadseaweedfs-3a86d4dbfded2fb34f0d9cb696a6c5ba9415be4f.tar.xz
seaweedfs-3a86d4dbfded2fb34f0d9cb696a6c5ba9415be4f.zip
mount: fix directory invalidation
fix https://github.com/chrislusf/seaweedfs/issues/2038
Diffstat (limited to 'weed/util/bounded_tree/bounded_tree.go')
-rw-r--r--weed/util/bounded_tree/bounded_tree.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/weed/util/bounded_tree/bounded_tree.go b/weed/util/bounded_tree/bounded_tree.go
index 3a8a22a9c..137f690b8 100644
--- a/weed/util/bounded_tree/bounded_tree.go
+++ b/weed/util/bounded_tree/bounded_tree.go
@@ -41,9 +41,6 @@ func (t *BoundedTree) EnsureVisited(p util.FullPath, visitFn VisitNodeFunc) (vis
if t.root == nil {
return
}
- if t.baseDir != "/" {
- p = p[len(t.baseDir):]
- }
components := p.Split()
// fmt.Printf("components %v %d\n", components, len(components))
canDelete, err := t.ensureVisited(t.root, t.baseDir, components, 0, visitFn)