From: Kees Monshouwer Date: Mon, 24 Oct 2022 10:38:47 +0000 (+0200) Subject: auth: catalog zone, stop wasting options update queries X-Git-Tag: dnsdist-1.8.0-rc1~261^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12123%2Fhead;p=thirdparty%2Fpdns.git auth: catalog zone, stop wasting options update queries --- diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 5cec49137f..4667e1352f 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -92,7 +92,6 @@ static bool catalogDiff(const DomainInfo& di, vector& fromXFR, vect bool doTransaction{true}; bool inTransaction{false}; - bool doOptions{false}; CatalogInfo ciCreate, ciRemove; std::unordered_map clearCache; vector retrieve; @@ -122,6 +121,7 @@ static bool catalogDiff(const DomainInfo& di, vector& fromXFR, vect CatalogInfo ciXFR = *xfr; CatalogInfo ciDB = *db; if (ciDB.d_unique.empty() || ciXFR.d_unique == ciDB.d_unique) { // update + bool doOptions{false}; if (ciDB.d_unique.empty()) { // set unique g_log << Logger::Warning << logPrefix << "set unique, zone '" << ciXFR.d_zone << "' is now a member" << endl;