]> granicus.if.org Git - pdns/commitdiff
Do not check slave domain freshness unless slave=yes
authorAki Tuomi <cmouse@desteem.org>
Tue, 25 Aug 2015 03:51:01 +0000 (06:51 +0300)
committerAki Tuomi <cmouse@desteem.org>
Tue, 25 Aug 2015 03:51:01 +0000 (06:51 +0300)
Before this, the code would perform initial AXFR from
master(s) for slave domains on nameserver with slave=no.

pdns/slavecommunicator.cc

index 8de367f1c8b509c535c568c8057abf9c1a608758..b0f0273b5dc3280201a1cb3a735b7a75224e44b1 100644 (file)
@@ -524,6 +524,9 @@ void CommunicatorClass::addTrySuperMasterRequest(DNSPacket *p)
 
 void CommunicatorClass::slaveRefresh(PacketHandler *P)
 {
+  // not unless we are slave
+  if (!::arg().mustDo("slave")) return;
+
   UeberBackend *B=P->getBackend();
   vector<DomainInfo> rdomains;
   vector<DomainNotificationInfo> sdomains; // the bool is for 'presigned'