LRUCache: Fix m_manual_evict not respected when adding

pull/3784/head^2
Stenzek 1 month ago
parent 48719b86b5
commit 96e0c4d389
No known key found for this signature in database

@ -136,7 +136,7 @@ public:
private:
void ShrinkForNewItem()
{
if (m_items.size() < m_max_capacity)
if (m_manual_evict || m_items.size() < m_max_capacity)
return;
Evict(m_items.size() - (m_max_capacity - 1));

Loading…
Cancel
Save