[prev in list] [next in list] [prev in thread] [next in thread]
List: pdns-dev
Subject: [Pdns-dev] URGENT! Very high SQL query load solution
From: bert hubert <ahu () ds9a ! nl>
Date: 2004-01-10 15:51:51
Message-ID: 20040110155151.GA18217 () outpost ! ds9a ! nl
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic