]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Typos and ws
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 16 Dec 2019 14:54:25 +0000 (15:54 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 4 Mar 2020 09:27:19 +0000 (10:27 +0100)
pdns/recursor_cache.cc
pdns/recursor_cache.hh

index e9aadd423acbe781259aaeaa9098d0cb5e8d05b6..37393efedb6e96c357a2bf206d8273668b97999a 100644 (file)
@@ -46,8 +46,8 @@ pair<uint64_t,uint64_t> 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<uint64_t,uint64_t>(c, a);
 }
 
index 19535e2eda6984bf2437f87093fed134fcfbae08..2b0305d82a6bae366b37e26c94ed080c09643611 100644 (file)
@@ -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<uint64_t,uint64_t> 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<uint64_t> d_entriesCount{0};
     uint64_t d_contended_count{0};
-    uint64_t d_acuired_count{0};
+    uint64_t d_acquired_count{0};
   };
 
   vector<MapCombo> 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()) {