From: Otto Moerbeek Date: Mon, 16 Dec 2019 14:54:25 +0000 (+0100) Subject: Typos and ws X-Git-Tag: dnsdist-1.5.0-alpha1~21^2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f16cb4ded4ce315bac063002c28548aafec5e2d6;p=thirdparty%2Fpdns.git Typos and ws --- diff --git a/pdns/recursor_cache.cc b/pdns/recursor_cache.cc index e9aadd423a..37393efedb 100644 --- a/pdns/recursor_cache.cc +++ b/pdns/recursor_cache.cc @@ -46,8 +46,8 @@ pair MemRecursorCache::stats() for (auto& map : d_maps) { const lock l(map); c += map.d_contended_count; - a += map.d_acuired_count; - } + a += map.d_acquired_count; + } return pair(c, a); } diff --git a/pdns/recursor_cache.hh b/pdns/recursor_cache.hh index 19535e2eda..2b0305d82a 100644 --- a/pdns/recursor_cache.hh +++ b/pdns/recursor_cache.hh @@ -49,7 +49,7 @@ class MemRecursorCache : public boost::noncopyable // : public RecursorCache public: MemRecursorCache(size_t mapsCount = 1024); ~MemRecursorCache(); - + size_t size(); size_t bytes(); pair stats(); @@ -192,7 +192,7 @@ private: struct MapCombo { MapCombo() {} - MapCombo(const MapCombo &) = delete; + MapCombo(const MapCombo &) = delete; MapCombo & operator=(const MapCombo &) = delete; cache_t d_map; ecsIndex_t d_ecsIndex; @@ -202,7 +202,7 @@ private: bool d_cachecachevalid{false}; std::atomic d_entriesCount{0}; uint64_t d_contended_count{0}; - uint64_t d_acuired_count{0}; + uint64_t d_acquired_count{0}; }; vector d_maps; @@ -224,7 +224,7 @@ public: m.lock(); map.d_contended_count++; } - map.d_acuired_count++; + map.d_acquired_count++; } ~lock() { m.unlock(); @@ -232,7 +232,7 @@ public: private: std::mutex &m; }; - + void preRemoval(const CacheEntry& entry) { if (entry.d_netmask.empty()) {