From 44c4fc7a52cb5e8b501437f315e873cb5d3b6d93 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 11 Jul 2022 13:55:22 +0200 Subject: [PATCH] Add a setNow() method to SyncRes for cache debugging/testing purposes --- pdns/syncres.hh | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.47.2