summaryrefslogtreecommitdiff
path: root/src/common/lru_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/lru_map.h')
-rw-r--r--src/common/lru_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/lru_map.h b/src/common/lru_map.h
index aa0b339b834..6e7f7b3786f 100644
--- a/src/common/lru_map.h
+++ b/src/common/lru_map.h
@@ -67,7 +67,7 @@ void lru_map<K, V>::add(const K& key, V& value)
e.value = value;
e.lru_iter = entries_lru.begin();
- while (entries_lru.size() > max) {
+ while (entries.size() > max) {
typename std::list<K>::reverse_iterator riter = entries_lru.rbegin();
iter = entries.find(*riter);
// assert(iter != entries.end());