From: Peter van Dijk Date: Tue, 2 Aug 2022 13:33:10 +0000 (+0200) Subject: Merge pull request #11815 from mind04/auth-notify X-Git-Tag: auth-4.8.0-alpha0~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15e9b74bc1944e62e7c8b7f1fe71a3959ec62bd5;p=thirdparty%2Fpdns.git Merge pull request #11815 from mind04/auth-notify auth: make sure a notified zone is in the zonecache --- 15e9b74bc1944e62e7c8b7f1fe71a3959ec62bd5 diff --cc pdns/mastercommunicator.cc index 1da9f1f6c9,ce32897f4b..102a484757 --- a/pdns/mastercommunicator.cc +++ b/pdns/mastercommunicator.cc @@@ -191,20 -144,26 +192,21 @@@ void CommunicatorClass::masterUpdateChe UeberBackend *B=P->getBackend(); vector cmdomains; - B->getUpdatedMasters(&cmdomains); - + std::unordered_set catalogs; + CatalogHashMap catalogHashes; + B->getUpdatedMasters(cmdomains, catalogs, catalogHashes); + getUpdatedProducers(B, cmdomains, catalogs, catalogHashes); + if(cmdomains.empty()) { - if(d_masterschanged) - g_log<1 ? "s" : "")<<" for which we are master need"<< - (cmdomains.size()>1 ? "" : "s")<< - " notifications"<setNotified(di.id, di.serial); }