]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
massively speed up nsec/nsec3 rectification by wrapping the update statements in...
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 25 Jan 2011 19:14:30 +0000 (19:14 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 25 Jan 2011 19:14:30 +0000 (19:14 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1908 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdnssec.cc

index 500112e080aa90328d81d1068ae2d43e3125b1c3..80fa8ffe1b041fd3be1c49970f9e4c98c3af84c5 100644 (file)
@@ -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"<<endl;
   
+  sd.db->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"<<endl;
 }