aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-21 22:00:34 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-21 22:00:34 -0700
commita207285af772fde0cb6f2f7524c9815329347857 (patch)
tree53037dd3a66d2b9470e184141a99c4c9735f696b /weed/filesys/wfs.go
parent9f9826e95afccc738d923c63a34c8ebcb3ca4569 (diff)
downloadseaweedfs-a207285af772fde0cb6f2f7524c9815329347857.tar.xz
seaweedfs-a207285af772fde0cb6f2f7524c9815329347857.zip
cache metadata on startup
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index e67e77613..de1fb1d2e 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -95,7 +95,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
}
if wfs.option.AsyncMetaDataCaching {
wfs.metaCache = meta_cache.NewMetaCache(path.Join(option.CacheDir, "meta"))
- if err := meta_cache.InitMetaCache(wfs.metaCache, wfs); err != nil{
+ if err := meta_cache.InitMetaCache(wfs.metaCache, wfs, wfs.option.FilerMountRootPath); err != nil{
glog.V(0).Infof("failed to init meta cache: %v", err)
} else {
go meta_cache.SubscribeMetaEvents(wfs.metaCache, wfs, wfs.option.FilerMountRootPath)