From: Bert Hubert Date: Sat, 11 Mar 2006 14:22:16 +0000 (+0000) Subject: make sdig compile again, slight change to mtasker which might make things compile... X-Git-Tag: pdns-2.9.20~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99173b8b495ab4caefb78c1cadaad4662699d286;p=pdns make sdig compile again, slight change to mtasker which might make things compile on RHEL3 git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@576 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/Makefile.am b/pdns/Makefile.am index ba4c11c10..08c4dafb8 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -44,7 +44,7 @@ pdns_server_INCLUDES= sdig_SOURCES=sdig.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnswriter.hh \ misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \ - logger.cc statbag.cc + logger.cc statbag.cc qtype.cc dnspbench_SOURCES=dnspbench.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnswriter.hh \ misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc logger.cc \ diff --git a/pdns/docs/Makefile b/pdns/docs/Makefile index 3b7ca4acb..b32e6957b 100644 --- a/pdns/docs/Makefile +++ b/pdns/docs/Makefile @@ -16,9 +16,11 @@ html.tar.gz: html/index.html %.txt: %-expanded.sgml docbook2txt $< + mv pdns-expanded.txt pdns.txt %.pdf: %-expanded.sgml docbook2pdf $< + mv pdns-expanded.pdf pdns.pdf publish: rsync --copy-links --delete -avrze ssh ./html pdns.txt pdns.pdf \ diff --git a/pdns/docs/pdns.sgml b/pdns/docs/pdns.sgml index eeb18969d..d27240ca5 100644 --- a/pdns/docs/pdns.sgml +++ b/pdns/docs/pdns.sgml @@ -132,10 +132,15 @@ - Commits C540, C541, C542, C543, C545, C547 and C548, C574 all speed up the recursor by a large factor, + Commits C535, C540, C541, C542, C543, C544, C545, C547 and C548, C574 all speed up the recursor by a large factor, without altering the DNS algorithm. + + + Cache was pruned every minute, which was too often. Now once every 5 minutes, c574. + + c549 and c550 work around gcc bug 24704 @@ -152,6 +157,12 @@ PowerDNS would no longer allow a '/' in domain names, fixed by c537, reported in t48. + + + Parameters to pdns_control notify-host were not checked, leading to + possible crashes. Reported in t24, fixed in c565. + + On some compilers, processing of NAPTR records could cause the server to crash. Reported by Bernd Froemel @@ -219,7 +230,13 @@ - dnsscope compiles again, c551, c564 (FreeBSD 64-bit time_t). + dnsscope compiles again, c551, c564 (FreeBSD 64-bit time_t). + + + + + dnsreplay_mindex compiles again, fixed by c572. Its performance, and the performance of the recursor + was improved by c559. diff --git a/pdns/mtasker.cc b/pdns/mtasker.cc index 06d5f21d0..16f719dad 100644 --- a/pdns/mtasker.cc +++ b/pdns/mtasker.cc @@ -282,8 +282,8 @@ templatebool MTasker::schedule() if(!d_waiters.empty()) { time_t now=time(0); - typedef typename waiters_t::template nth_index<1>::type waiters_by_ttd_index_t; - waiters_by_ttd_index_t& ttdindex=d_waiters.get<1>(); + typedef typename waiters_t::template index::type waiters_by_ttd_index_t; + waiters_by_ttd_index_t& ttdindex=d_waiters.get(); for(typename waiters_by_ttd_index_t::iterator i=ttdindex.begin(); i != ttdindex.end(); ) { if(i->ttd && i->ttd < now) { diff --git a/pdns/mtasker.hh b/pdns/mtasker.hh index dbc899acd..746ac4da8 100644 --- a/pdns/mtasker.hh +++ b/pdns/mtasker.hh @@ -57,12 +57,12 @@ private: }; // typedef std::map waiters_t; - + struct KeyTag {}; typedef multi_index_container< Waiter, indexed_by < ordered_unique >, - ordered_non_unique > + ordered_non_unique, member > > > waiters_t;