diff options
| author | chrislu <chris.lu@gmail.com> | 2022-02-28 12:16:53 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-02-28 12:16:53 -0800 |
| commit | fcf371444356b98d7f1c169068ee2a890889c122 (patch) | |
| tree | 20ebab68fb9cc96de6249b184fb685c538c7e089 /weed/mount/meta_cache/meta_cache.go | |
| parent | ca0cd81a75b1bdce429ab3b32724bf6a40097a03 (diff) | |
| download | seaweedfs-fcf371444356b98d7f1c169068ee2a890889c122.tar.xz seaweedfs-fcf371444356b98d7f1c169068ee2a890889c122.zip | |
mount: add back support for filer.path
Diffstat (limited to 'weed/mount/meta_cache/meta_cache.go')
| -rw-r--r-- | weed/mount/meta_cache/meta_cache.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/mount/meta_cache/meta_cache.go b/weed/mount/meta_cache/meta_cache.go index 994f00463..8c434787a 100644 --- a/weed/mount/meta_cache/meta_cache.go +++ b/weed/mount/meta_cache/meta_cache.go @@ -14,6 +14,7 @@ import ( // e.g. fill fileId field for chunks type MetaCache struct { + root util.FullPath localStore filer.VirtualFilerStore // sync.RWMutex uidGidMapper *UidGidMapper @@ -22,8 +23,10 @@ type MetaCache struct { invalidateFunc func(fullpath util.FullPath, entry *filer_pb.Entry) } -func NewMetaCache(dbFolder string, uidGidMapper *UidGidMapper, markCachedFn func(path util.FullPath), isCachedFn func(path util.FullPath) bool, invalidateFunc func(util.FullPath, *filer_pb.Entry)) *MetaCache { +func NewMetaCache(dbFolder string, uidGidMapper *UidGidMapper, root util.FullPath, + markCachedFn func(path util.FullPath), isCachedFn func(path util.FullPath) bool, invalidateFunc func(util.FullPath, *filer_pb.Entry)) *MetaCache { return &MetaCache{ + root: root, localStore: openMetaStore(dbFolder), markCachedFn: markCachedFn, isCachedFn: isCachedFn, |
