// This is comparable to what cachecleaner.hh::pruneMutexCollectionsVector() is doing, look there for an explanation
entriesCount -= zoneSize;
uint64_t trimmedFromThisZone = 0;
- for (auto it = sidx.begin(); it != sidx.end() && trimmedFromThisZone < toTrimForThisZone; ) {
+ for (auto it = sidx.begin(); it != sidx.end() && trimmedFromThisZone < toTrimForThisZone;) {
it = sidx.erase(it);
++erased;
++trimmedFromThisZone;
const size_t testSize = 10000;
auto cache = make_unique<AggressiveNSECCache>(testSize);
- struct timeval now{};
+ struct timeval now
+ {
+ };
Utility::gettimeofday(&now, nullptr);
vector<DNSName> names;
auto diff2 = time.udiff(true);
// Check that replace is about equally fast as insert
- BOOST_ASSERT(diff1 < diff2 * 1.2 && diff2 < diff1 * 1.2);
+ BOOST_CHECK(diff1 < diff2 * 1.2 && diff2 < diff1 * 1.2);
}
BOOST_AUTO_TEST_CASE(test_aggressive_nsec_wiping)