From: Otto Moerbeek Date: Mon, 11 Jul 2022 11:55:22 +0000 (+0200) Subject: Add a setNow() method to SyncRes for cache debugging/testing purposes X-Git-Tag: rec-4.8.0-alpha1~24^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44c4fc7a52cb5e8b501437f315e873cb5d3b6d93;p=thirdparty%2Fpdns.git Add a setNow() method to SyncRes for cache debugging/testing purposes --- diff --git a/pdns/syncres.hh b/pdns/syncres.hh index 7f6a71c21b..727ef8e7cf 100644 --- a/pdns/syncres.hh +++ b/pdns/syncres.hh @@ -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 incomingECS); void setQuerySource(const Netmask& netmask);