]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add a setNow() method to SyncRes for cache debugging/testing purposes
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 11 Jul 2022 11:55:22 +0000 (13:55 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 9 Sep 2022 07:45:15 +0000 (09:45 +0200)
pdns/syncres.hh

index 7f6a71c21bc83b8f48bb309b8483b41722052124..727ef8e7cf36ffeebe054f5cdcab6ab5fa773461 100644 (file)
@@ -391,6 +391,12 @@ public:
     return d_now;
   }
 
+  // For debugging purposes
+  void setNow(const struct timeval& tv)
+  {
+    d_now = tv;
+  }
+
   void setQuerySource(const ComboAddress& requestor, boost::optional<const EDNSSubnetOpts&> incomingECS);
   void setQuerySource(const Netmask& netmask);