[Pdns-dev] URGENT! Very high SQL query load solution

bert hubert ahu at ds9a.nl
Sat Jan 10 16:51:51 CET 2004


If you suddenly see a very high SQL query load, you need to recompile with
this patch. Many thanks to Jasper Spaans for spotting this problem in 5
minutes. Apologies for not immediately believing people with sudden powerdns
problems!

Index: pdns/communicator.hh
===================================================================
RCS file: /var/cvsroot/pdns/pdns/communicator.hh,v
retrieving revision 1.5
diff -u -B -b -r1.5 communicator.hh
--- pdns/communicator.hh	21 Jun 2003 09:59:08 -0000	1.5
+++ pdns/communicator.hh	10 Jan 2004 15:47:47 -0000
@@ -94,7 +94,7 @@
   
   time_t earliest()
   {
-    time_t early=1<<31-1; // y2038 problem lurking here :-)
+    time_t early=(1<<31)-1; // y2038 problem lurking here :-)
     for(d_nqueue_t::const_iterator i=d_nqueue.begin();i!=d_nqueue.end();++i) 
       early=min(early,i->next);
     return early-time(0);


-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO


More information about the Pdns-dev mailing list