mount: fix bound tree with filer.path

fix https://github.com/chrislusf/seaweedfs/issues/1528
This commit is contained in:
Chris Lu
2020-10-12 21:58:37 -07:00
parent f022aff289
commit b18f21cce1
5 changed files with 19 additions and 9 deletions

View File

@@ -22,10 +22,10 @@ type MetaCache struct {
uidGidMapper *UidGidMapper
}
func NewMetaCache(dbFolder string, uidGidMapper *UidGidMapper) *MetaCache {
func NewMetaCache(dbFolder string, baseDir util.FullPath, uidGidMapper *UidGidMapper) *MetaCache {
return &MetaCache{
localStore: openMetaStore(dbFolder),
visitedBoundary: bounded_tree.NewBoundedTree(),
visitedBoundary: bounded_tree.NewBoundedTree(baseDir),
uidGidMapper: uidGidMapper,
}
}