mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 17:36:25 -05:00
policy_cache.hpp
This commit is contained in:
parent
c006eddd69
commit
51f80d0116
1 changed files with 2 additions and 2 deletions
|
|
@ -39,9 +39,9 @@ public:
|
|||
public:
|
||||
void
|
||||
insert(std::string const &key_,
|
||||
std::string &val_)
|
||||
std::string const &val_)
|
||||
{
|
||||
_cache.visit_while([&](Map::value_type &v_)
|
||||
_cache.visit_while([&](Map::value_type const &v_)
|
||||
{
|
||||
_cache.erase(v_.first);
|
||||
return (_cache.size() > _max_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue