]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #8096 from mind04/pdns-notify-db-queries
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 14 Feb 2020 18:22:32 +0000 (19:22 +0100)
committerGitHub <noreply@github.com>
Fri, 14 Feb 2020 18:22:32 +0000 (19:22 +0100)
auth: do not update identical notified serials

pdns/mastercommunicator.cc

index abd496fe7a895f6fc6bf367807c7c30c38f2cff9..4219e1d356bd0a374ef1e665e4029e232418fd09 100644 (file)
@@ -120,8 +120,9 @@ bool CommunicatorClass::notifyDomain(const DNSName &domain, UeberBackend* B)
     return false;
   }
   queueNotifyDomain(di, B);
-  // call backend and tell them we sent out the notification - even though that is premature    
-  di.backend->setNotified(di.id, di.serial);
+  // call backend and tell them we sent out the notification - even though that is premature
+  if (di.serial != di.notified_serial)
+    di.backend->setNotified(di.id, di.serial);
 
   return true; 
 }