mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-29 12:03:59 +08:00
policy_cache.hpp
This commit is contained in:
parent
416aa54185
commit
a3f9323467
|
@ -51,13 +51,14 @@ public:
|
|||
std::string*
|
||||
find(char const *key_)
|
||||
{
|
||||
Map::const_iterator i;
|
||||
std::string rv;
|
||||
auto func =
|
||||
[&](const auto &v)
|
||||
{
|
||||
rv = v;
|
||||
};
|
||||
|
||||
i = _cache.find(key_);
|
||||
if(i == _cache.end())
|
||||
return NULL;
|
||||
|
||||
return &i->second;
|
||||
_cache.visit(key_, []
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue
Block a user