Browse Source

a better fix

pull/2063/head
Chris Lu 4 years ago
parent
commit
3942e3b2ef
  1. 4
      weed/util/bounded_tree/bounded_tree.go

4
weed/util/bounded_tree/bounded_tree.go

@ -41,9 +41,9 @@ func (t *BoundedTree) EnsureVisited(p util.FullPath, visitFn VisitNodeFunc) (vis
if t.root == nil { if t.root == nil {
return return
} }
components := util.FullPath(p[len(t.baseDir):]).Split()
components := p.Split()
// fmt.Printf("components %v %d\n", components, len(components)) // fmt.Printf("components %v %d\n", components, len(components))
canDelete, err := t.ensureVisited(t.root, t.baseDir, components, 0, visitFn)
canDelete, err := t.ensureVisited(t.root, util.FullPath("/"), components, 0, visitFn)
if err != nil { if err != nil {
return err return err
} }

Loading…
Cancel
Save