From 4bd424bcf615966094c1e026dab4f320ac547b89 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Mon, 24 Oct 2022 12:38:47 +0200 Subject: [PATCH] auth: catalog zone, stop wasting options update queries --- pdns/slavecommunicator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2