]> granicus.if.org Git - pdns/commitdiff
auth: Purge the caches after a successful IXFR
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 5 Oct 2017 10:24:56 +0000 (12:24 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 5 Oct 2017 10:24:56 +0000 (12:24 +0200)
pdns/slavecommunicator.cc

index 016cb04f608f75aafd271cd69a01c2fc8ac46302..2ba523240caabb52f160d45ffcbaa4993450954a 100644 (file)
@@ -415,6 +415,7 @@ void CommunicatorClass::suck(const DNSName &domain, const string &remote)
         }
         else {
           L<<Logger::Warning<<"Done with IXFR of '"<<domain<<"' from remote '"<<remote<<"', got "<<zs.numDeltas<<" delta"<<addS(zs.numDeltas)<<", serial now "<<zs.soa_serial<<endl;
+          purgeAuthCaches(domain.toString()+"$");
           return;
         }
       }