]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
implement slave-renotify for front-signing operation with renotification of the actua...
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 31 Jan 2011 13:08:24 +0000 (13:08 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 31 Jan 2011 13:08:24 +0000 (13:08 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1950 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/common_startup.cc
pdns/slavecommunicator.cc

index 74431b14d79d5863a51a04d1b13679c4b4804d65..39329d239adb8da62f702f9592ff7a01ae9cb3c7 100644 (file)
@@ -117,6 +117,7 @@ void declareArguments()
   ::arg().set("soa-expire-default","Default SOA expire")="604800";
 
   ::arg().set("trusted-notification-proxy", "IP address of incoming notification proxy")="";
+  ::arg().set("slave-renotify", "If we should send out notifications for slaved updates")="no";
 
   ::arg().set("default-ttl","Seconds a result is valid if not set otherwise")="3600";
   ::arg().set("max-tcp-connections","Maximum number of TCP connections")="10";
index 415f01ba854458a58dfda1c741de17b166c0a8e5..6f4bc1639e122cd74fe3d5a9f6a53f9a9b4b469a 100644 (file)
@@ -160,6 +160,8 @@ void CommunicatorClass::suck(const string &domain,const string &remote)
     di.backend->commitTransaction();
     di.backend->setFresh(domain_id);
     L<<Logger::Error<<"AXFR done for '"<<domain<<"', zone committed"<<endl;
+    if(::arg().mustDo("slave-renotify"))
+      notifyDomain(domain);
   }
   catch(DBException &re) {
     L<<Logger::Error<<"Unable to feed record during incoming AXFR of '"+domain+"': "<<re.reason<<endl;