From: Ruben d'Arco Date: Sun, 3 Mar 2013 10:05:49 +0000 (+0100) Subject: Add logging to increaseSerial and make sure we count it in rfc2136-changes X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=890c71241ed9f5c6d67f22274408ff5c050b2541;p=thirdparty%2Fpdns.git Add logging to increaseSerial and make sure we count it in rfc2136-changes --- diff --git a/pdns/rfc2136handler.cc b/pdns/rfc2136handler.cc index c4d705767d..d32809693e 100755 --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@ -714,8 +714,11 @@ int PacketHandler::processUpdate(DNSPacket *p) { } */ // Section 3.6 - Update the SOA serial - outside of performUpdate because we do a SOA update for the complete update message - if (changedRecords > 0 && !updatedSerial) + if (changedRecords > 0 && !updatedSerial) { increaseSerial(msgPrefix, &di, haveNSEC3, narrow, &ns3pr); + changedRecords++; + } + S.deposit("rfc2136-changes", changedRecords); } @@ -762,6 +765,7 @@ void PacketHandler::increaseSerial(const string &msgPrefix, const DomainInfo *di } SOAData soa2Update; fillSOAData(rec.content, soa2Update); + int oldSerial = soa2Update.serial; vector soaEdit2136Setting; B.getDomainMetadata(di->zone, "SOA-EDIT-2136", soaEdit2136Setting); @@ -811,6 +815,7 @@ void PacketHandler::increaseSerial(const string &msgPrefix, const DomainInfo *di vector rrset; rrset.push_back(newRec); di->backend->replaceRRSet(di->id, newRec.qname, newRec.qtype, rrset); + L< "<