mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
mount: load directory based on correct filer path
fix https://github.com/chrislusf/seaweedfs/issues/1799
This commit is contained in:
parent
755b524814
commit
c959aaa19b
|
@ -70,12 +70,8 @@ func (t *BoundedTree) ensureVisited(n *Node, currentPath util.FullPath, componen
|
||||||
} else {
|
} else {
|
||||||
// fmt.Printf("ensure %v\n", currentPath)
|
// 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 {
|
if err != nil {
|
||||||
glog.V(0).Infof("failed to visit %s: %v", currentPath, err)
|
glog.V(0).Infof("failed to visit %s: %v", currentPath, err)
|
||||||
return false, err
|
return false, err
|
||||||
|
|
Loading…
Reference in a new issue