]> granicus.if.org Git - pdns/commitdiff
BIND: re-instate also-notify behaviour
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 24 Oct 2017 10:08:51 +0000 (12:08 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 24 Oct 2017 10:08:51 +0000 (12:08 +0200)
@mind04 noticed the behaviour introduced in bc67ec22 was not the same as
before.

modules/bindbackend/bindbackend2.cc

index 5bddd104dee7fbc4992ccfe0ac5fd095a58ccd87..117e4b79328d9ede9b27127b30d797f4c8f26314 100644 (file)
@@ -302,7 +302,7 @@ void Bind2Backend::getUpdatedMasters(vector<DomainInfo> *changedDomains)
     ReadLock rl(&s_state_lock);
 
     for(state_t::const_iterator i = s_state.begin(); i != s_state.end() ; ++i) {
-      if(i->d_kind != DomainInfo::Master)
+      if(i->d_kind != DomainInfo::Master && this->alsoNotify.empty() && i->d_also_notify.empty())
         continue;
 
       DomainInfo di;