]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: update the number of records in the RPZ stats
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 23 Mar 2018 09:57:47 +0000 (10:57 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 23 Mar 2018 09:57:47 +0000 (10:57 +0100)
pdns/rpzloader.cc

index c29d60089b2bb99af777a9e7676228f8c1397f35..0e5bb6e23b933a2090f11c37df071a9f4ac33ecc 100644 (file)
@@ -274,6 +274,7 @@ static void setRPZZoneNewState(const std::string& zone, uint32_t serial, uint64_
   }
   stats.d_lastUpdate = time(nullptr);
   stats.d_serial = serial;
+  stats.d_numberOfRecords = numberOfRecords;
 }
 
 void RPZIXFRTracker(const ComboAddress& master, boost::optional<DNSFilterEngine::Policy> defpol, uint32_t maxTTL, size_t zoneIdx, const TSIGTriplet& tt, size_t maxReceivedBytes, const ComboAddress& localAddress, std::shared_ptr<DNSFilterEngine::Zone> zone, const uint16_t axfrTimeout)