From: Josh Soref Date: Thu, 2 Feb 2017 10:19:48 +0000 (+0000) Subject: spelling: occurring X-Git-Tag: rec-4.1.0-alpha1~291^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccac98a09419228ebf8a4d396a6087909b7fba2f;p=thirdparty%2Fpdns.git spelling: occurring --- diff --git a/pdns/dnsdist-cache.cc b/pdns/dnsdist-cache.cc index 2b9c25cc49..24bd53fe39 100644 --- a/pdns/dnsdist-cache.cc +++ b/pdns/dnsdist-cache.cc @@ -27,7 +27,7 @@ DNSDistPacketCache::DNSDistPacketCache(size_t maxEntries, uint32_t maxTTL, uint32_t minTTL, uint32_t tempFailureTTL, uint32_t staleTTL): d_maxEntries(maxEntries), d_maxTTL(maxTTL), d_tempFailureTTL(tempFailureTTL), d_minTTL(minTTL), d_staleTTL(staleTTL) { pthread_rwlock_init(&d_lock, 0); - /* we reserve maxEntries + 1 to avoid rehashing from occuring + /* we reserve maxEntries + 1 to avoid rehashing from occurring when we get to maxEntries, as it means a load factor of 1 */ d_map.reserve(maxEntries + 1); }