]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix freshness check for finding unfresh clients
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 25 Oct 2022 11:48:58 +0000 (13:48 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 25 Oct 2022 11:48:58 +0000 (13:48 +0200)
pdns/backends/gsql/gsqlbackend.cc

index bce52e8fbd789c0142b7cc021fa89c240f26849b..df24cec22c023680b27e9bfbbb74aaabe055c9e7 100644 (file)
@@ -461,7 +461,7 @@ void GSQLBackend::getUnfreshSlaveInfos(vector<DomainInfo> *unfreshDomains)
         continue;
       }
 
-      if (static_cast<time_t>(last_check + sd.refresh) < time(nullptr)) { // still fresh
+      if (static_cast<time_t>(last_check + sd.refresh) >= time(nullptr)) { // still fresh
         continue;
       }
       di.serial = sd.serial;