diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-05 22:16:41 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-05 22:16:41 +0000 |
commit | 71ba250b63e61359a6b712918aa0022e7cff1780 (patch) | |
tree | 57118887d5e4787fe4d5f44c0934c6ac4e1ef452 | |
parent | Improve error handling around unavailable daemon (diff) | |
download | netfs-71ba250b63e61359a6b712918aa0022e7cff1780.tar.bz2 netfs-71ba250b63e61359a6b712918aa0022e7cff1780.tar.xz netfs-71ba250b63e61359a6b712918aa0022e7cff1780.zip |
Update to use new AdHoc::Cache interface
-rw-r--r-- | netfs/fuse/fuseDirs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp index c8b5a16..17054d2 100644 --- a/netfs/fuse/fuseDirs.cpp +++ b/netfs/fuse/fuseDirs.cpp @@ -75,11 +75,11 @@ NetFS::FuseApp::readdir(const char * p, void * buf, fuse_fill_dir_t filler, off_ std::string epath = path + "/" + e; auto asga = volume->begin_getattr(reqEnv(), epath); statCache.add(epath, - [asga,this]() { + StatCache::Factory([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; } |