From 4ae46a289b08ab8ba1fc4568e658a5d38eef78fc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 6 Jan 2016 21:54:11 +0000 Subject: Update to use new AdHoc::Cache interface --- netfs/fuse/fuseDirs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp index 17054d2..c780866 100644 --- a/netfs/fuse/fuseDirs.cpp +++ b/netfs/fuse/fuseDirs.cpp @@ -74,12 +74,12 @@ NetFS::FuseApp::readdir(const char * p, void * buf, fuse_fill_dir_t filler, off_ filler(buf, e.c_str(), NULL, 0); std::string epath = path + "/" + e; auto asga = volume->begin_getattr(reqEnv(), epath); - statCache.add(epath, - StatCache::Factory([asga,this]() { + statCache.addFactory(epath, + [asga,this]() { struct stat s; s << AttrSource { volume->end_getattr(asga), userLookup, groupLookup }; return s; - }), time_t(NULL) + 2); + }, time_t(NULL) + 2); } return 0; } -- cgit v1.2.3