diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-10 23:13:14 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-10 23:14:18 -0800 |
| commit | c959aaa19bdf76b90f884eb63707772902adfebe (patch) | |
| tree | f77868e7fb61bdeea29a0fd58a08786d4be22803 /weed/util/bounded_tree/bounded_tree.go | |
| parent | 755b5248146ed34ce962c9a99c223f1728ce8d8d (diff) | |
| download | seaweedfs-c959aaa19bdf76b90f884eb63707772902adfebe.tar.xz seaweedfs-c959aaa19bdf76b90f884eb63707772902adfebe.zip | |
mount: load directory based on correct filer path
fix https://github.com/chrislusf/seaweedfs/issues/1799
Diffstat (limited to 'weed/util/bounded_tree/bounded_tree.go')
| -rw-r--r-- | weed/util/bounded_tree/bounded_tree.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/weed/util/bounded_tree/bounded_tree.go b/weed/util/bounded_tree/bounded_tree.go index 0e8af2520..e49c1e50a 100644 --- a/weed/util/bounded_tree/bounded_tree.go +++ b/weed/util/bounded_tree/bounded_tree.go @@ -70,12 +70,8 @@ func (t *BoundedTree) ensureVisited(n *Node, currentPath util.FullPath, componen } else { // fmt.Printf("ensure %v\n", currentPath) - filerPath := currentPath - if t.baseDir != "/" { - filerPath = t.baseDir + filerPath - } - children, err := visitFn(filerPath) + children, err := visitFn(currentPath) if err != nil { glog.V(0).Infof("failed to visit %s: %v", currentPath, err) return false, err |
