]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: catalog zone, stop wasting options update queries 12123/head
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 24 Oct 2022 10:38:47 +0000 (12:38 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 24 Oct 2022 11:47:46 +0000 (13:47 +0200)
pdns/slavecommunicator.cc

index 5cec49137fd7bd6e4f39adba0473b94a9ecfc277..4667e1352fb26bfb8395e2107628f7bb6214bab4 100644 (file)
@@ -92,7 +92,6 @@ static bool catalogDiff(const DomainInfo& di, vector<CatalogInfo>& fromXFR, vect
 
   bool doTransaction{true};
   bool inTransaction{false};
-  bool doOptions{false};
   CatalogInfo ciCreate, ciRemove;
   std::unordered_map<DNSName, bool> clearCache;
   vector<CatalogInfo> retrieve;
@@ -122,6 +121,7 @@ static bool catalogDiff(const DomainInfo& di, vector<CatalogInfo>& 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;