From: Pieter Lexis Date: Wed, 17 Jan 2018 18:50:38 +0000 (+0100) Subject: ixfrdist: switch to one-line messages X-Git-Tag: dnsdist-1.3.0~111^2~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23b644c6d8c25cb426a570cac7f2ac9cad102296;p=pdns ixfrdist: switch to one-line messages --- diff --git a/pdns/ixfrdist.cc b/pdns/ixfrdist.cc index dda8829d1..722f27701 100644 --- a/pdns/ixfrdist.cc +++ b/pdns/ixfrdist.cc @@ -117,13 +117,14 @@ void* updateThread(void*) { try { auto newSerial = getSerialFromMaster(g_master, domain, sr); // TODO TSIG if(g_soas.find(domain) != g_soas.end() && g_verbose) { - cerr<<"[INFO] Got SOA Serial: "<< newSerial<<", had Serial: "<d_st.serial<d_st.serial) { - if (g_verbose) { - cerr<<"[INFO] Not updating."<d_st.serial; + if (newSerial == g_soas[domain]->d_st.serial) { + if (g_verbose) { + cerr<<", not updating."<d_st.serial<<" to "< guard(g_soas_mutex); - if (soa != nullptr) { - g_soas[domain] = soa; - } + g_soas[domain] = soa; } } /* for (const auto &domain : domains) */ sleep(10); @@ -186,11 +189,11 @@ bool checkQuery(const MOADNSParser& mdp, const ComboAddress& saddr, const bool u } if (udp && mdp.d_qtype != QType::SOA && mdp.d_qtype != QType::IXFR) { - info_msg.push_back("QType is unsupported (" + QType(mdp.d_qtype).getName() + " is not in {SOA,IXFR}."); + info_msg.push_back("QType is unsupported (" + QType(mdp.d_qtype).getName() + " is not in {SOA,IXFR}"); } if (!udp && mdp.d_qtype != QType::SOA && mdp.d_qtype != QType::IXFR && mdp.d_qtype != QType::AXFR) { - info_msg.push_back("QType is unsupported (" + QType(mdp.d_qtype).getName() + " is not in {SOA,IXFR,AXFR}."); + info_msg.push_back("QType is unsupported (" + QType(mdp.d_qtype).getName() + " is not in {SOA,IXFR,AXFR}"); } if (g_domains.find(mdp.d_qname) == g_domains.end()) { @@ -204,9 +207,14 @@ bool checkQuery(const MOADNSParser& mdp, const ComboAddress& saddr, const bool u if (!info_msg.empty()) { cerr<<"[WARNING] Ignoring "<