]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
only prune cache once every 5 minutes, not every minute
authorBert Hubert <bert.hubert@netherlabs.nl>
Fri, 10 Mar 2006 13:05:40 +0000 (13:05 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Fri, 10 Mar 2006 13:05:40 +0000 (13:05 +0000)
we neglected to add the 'bootstrapping' script to the tarball, thanks to Stefan Arentz for noticing

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@574 d19b8d6e-7fed-0310-83ef-9ca221ded41b

Makefile.am
pdns/pdns_recursor.cc

index 9b3641240a6ef9816a579a4ccdba07f20f48b803..8e4e96b319017563f620ad669d34c17f4d9165ca 100644 (file)
@@ -1,6 +1,7 @@
 SUBDIRS=modules codedocs @programdescend@
 EXTRA_DIST=TODO README HACKING INSTALL ChangeLog debian-pdns pdns.spec  \
-codedocs/Makefile codedocs/doxygen.conf contrib/powerdns.solaris.init.d
+codedocs/Makefile codedocs/doxygen.conf contrib/powerdns.solaris.init.d \
+bootstrap
 
 man8_MANS=pdns/docs/pdns_control.8 pdns/docs/pdns_server.8 pdns/docs/zone2sql.8 
 
index 56360cb8380d2e6f4488028be2ca9b3c85b0935f..03ff924d7bd6ca406c454a1db1fd2833e46be1c7 100644 (file)
@@ -516,11 +516,11 @@ void doStats(void)
   statsWanted=false;
 }
 
-void houseKeeping(void *)
+static void houseKeeping(void *)
 {
   static time_t last_stat, last_rootupdate, last_prune;
   time_t now=time(0);
-  if(now - last_prune > 60) { 
+  if(now - last_prune > 300) { 
     RC.doPrune();
     int pruned=0;
     for(SyncRes::negcache_t::iterator i = SyncRes::s_negcache.begin(); i != SyncRes::s_negcache.end();)