mount: fix directory invalidation

fix https://github.com/chrislusf/seaweedfs/issues/2038
This commit is contained in:
Chris Lu
2021-04-30 22:51:06 -07:00
parent d74cdf0115
commit 3a86d4dbfd
4 changed files with 12 additions and 12 deletions

View File

@@ -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)