Permalink
Browse files

Remove just enough entries from the cache, not one more than asked

(cherry picked from commit f3cb7c7)
  • Loading branch information...
rgacogne committed Jun 20, 2017
1 parent 71df156 commit 2ec8d8148d4691254d97ae18aa9d97a31677394f
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/cachecleaner.hh
View
@@ -60,7 +60,7 @@ template <typename T> void pruneCollection(T& collection, unsigned int maxCached
else
++iter;
if(toTrim && erased > toTrim)
if(toTrim && erased >= toTrim)
break;
}

0 comments on commit 2ec8d81

Please sign in to comment.