From 1fd89ec24e28da7ff3a890ab613ffdd9b3c70bc8 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 1 Oct 2021 17:52:39 +0200 Subject: [PATCH] reduce back and forth type conversions; beter var naming --- pdns/mastercommunicator.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pdns/mastercommunicator.cc b/pdns/mastercommunicator.cc index 7bd71f476f..21b0488bab 100644 --- a/pdns/mastercommunicator.cc +++ b/pdns/mastercommunicator.cc @@ -46,28 +46,27 @@ void CommunicatorClass::queueNotifyDomain(const DomainInfo& di, UeberBackend* B) { bool hasQueuedItem=false; - set nsset, ips; + set ips; + set nsset; DNSZoneRecord rr; FindNS fns; - try { if (d_onlyNotify.size()) { B->lookup(QType(QType::NS), di.zone, di.id); while(B->get(rr)) - nsset.insert(getRR(rr.dr)->getNS().toString()); + nsset.insert(getRR(rr.dr)->getNS()); - for(const auto & j : nsset) { - auto dnsj = DNSName(j); - vector nsips=fns.lookup(dnsj, B); + for(const auto & ns : nsset) { + vector nsips=fns.lookup(ns, B); if(nsips.empty()) - g_log<