mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
policy_cache.hpp
This commit is contained in:
parent
426f45b839
commit
b388c6699a
1 changed files with 4 additions and 1 deletions
|
|
@ -41,7 +41,10 @@ public:
|
|||
insert(std::string const &key_,
|
||||
std::string &val_)
|
||||
{
|
||||
auto i = std::begin(_cache);
|
||||
_cache.visit_while([&](Map::value_type &v_)
|
||||
{
|
||||
return false;
|
||||
});
|
||||
|
||||
_cache.insert_or_assign(key_,val_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue