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
b33441c3c2
commit
1edf89ca5a
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ public:
|
|||
cleanup()
|
||||
{
|
||||
while(_cache.size() > _max_size)
|
||||
_cache.erase(_cache.begin());
|
||||
_cache.erase((_cache.size() & 1) ? _cache.begin() : _cache.rbegin());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue