From: Bert Hubert Date: Tue, 25 Jan 2011 19:14:30 +0000 (+0000) Subject: massively speed up nsec/nsec3 rectification by wrapping the update statements in... X-Git-Tag: auth-3.0~339 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e54afa5be6c465cd73e31b04675cb875c46551a;p=thirdparty%2Fpdns.git massively speed up nsec/nsec3 rectification by wrapping the update statements in a transaction git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1908 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 500112e080..80fa8ffe1b 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -115,6 +115,7 @@ void rectifyZone(DNSSECKeeper& dk, const std::string& zone) else cerr<<"Erasing NSEC3 ordering since we are narrow, only setting 'auth' fields"<startTransaction("", -1); BOOST_FOREACH(const string& qname, qnames) { string shorter(qname); @@ -136,6 +137,7 @@ void rectifyZone(DNSSECKeeper& dk, const std::string& zone) sd.db->updateDNSSECOrderAndAuthAbsolute(sd.domain_id, qname, hashed, auth); } } + sd.db->commitTransaction(); cerr<<"Done listing"<