From: Remi Gacogne Date: Wed, 7 Aug 2019 09:00:44 +0000 (+0200) Subject: dnsdist: Clear the CDB refresh guard after a successful refresh X-Git-Tag: dnsdist-1.4.0-rc2~9^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75ee3a9a52963a752c3337c7b5243129d16bd00b;p=pdns dnsdist: Clear the CDB refresh guard after a successful refresh --- diff --git a/pdns/dnsdistdist/dnsdist-kvs.cc b/pdns/dnsdistdist/dnsdist-kvs.cc index aba95cda5..a1555f441 100644 --- a/pdns/dnsdistdist/dnsdist-kvs.cc +++ b/pdns/dnsdistdist/dnsdist-kvs.cc @@ -140,6 +140,7 @@ void CDBKVStore::refreshDBIfNeeded(time_t now) warnlog("Error while retrieving the last modification time of CDB database '%s': %s", d_fname, stringerror()); } d_nextCheck = now + d_refreshDelay; + d_refreshing.clear(); } catch(...) { d_refreshing.clear();