From: Bert Hubert Date: Wed, 15 Mar 2006 18:11:12 +0000 (+0000) Subject: update documentation, make sure we ship sgml expander, make sure we don't always... X-Git-Tag: pdns-2.9.20~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92294b60e200010dd06e6684e198ee78bdce3566;p=thirdparty%2Fpdns.git update documentation, make sure we ship sgml expander, make sure we don't always skip locks, git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@585 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/Makefile.am b/pdns/Makefile.am index 08c4dafb88..2bd97c10e3 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -1,7 +1,7 @@ AM_CXXFLAGS=-DSYSCONFDIR=\"@sysconfdir@\" -DLIBDIR=\"@libdir@\" -DLOCALSTATEDIR=\"@socketdir@\" -Ibackends/bind AM_CPPFLAGS=-Ibackends/bind @THREADFLAGS@ -EXTRA_DIST = docs/Makefile \ +EXTRA_DIST = docs/Makefile docs/expand \ docs/gslb-operations.sgml docs/powerdns-case.sgml docs/powerdns-install.sgml \ docs/powerdns-overview.sgml docs/powerdns-technical.sgml \ docs/pdns.sgml mtasker.cc \ diff --git a/pdns/arguments.hh b/pdns/arguments.hh index 6b77f85682..1130af46b6 100644 --- a/pdns/arguments.hh +++ b/pdns/arguments.hh @@ -27,7 +27,6 @@ #include "misc.hh" #include "ahuexception.hh" - using namespace std; typedef AhuException ArgException; diff --git a/pdns/docs/pdns.sgml b/pdns/docs/pdns.sgml index d27240ca5b..bc26a1d857 100644 --- a/pdns/docs/pdns.sgml +++ b/pdns/docs/pdns.sgml @@ -138,7 +138,8 @@ - Cache was pruned every minute, which was too often. Now once every 5 minutes, c574. + Move recursor to the incredible boost::multi_index_container (c580). This brings a huge improvement + in cache pruning times. @@ -169,6 +170,12 @@ in t29, fixed in c538. + + + Backend errors could make the whole nameserver exit under some circumstances, notably using the LDAP backend. Fixed in c583, reported in + t62. + + Referrals were subtly broken by recent CNAME/Wildcard improvements, fixed in c539. Fix and other diff --git a/pdns/recursor_cache.cc b/pdns/recursor_cache.cc index 69ae274459..3e49ef3f3e 100644 --- a/pdns/recursor_cache.cc +++ b/pdns/recursor_cache.cc @@ -3,11 +3,11 @@ #include #include #include "dnsrecords.hh" + using namespace std; using namespace boost; #include "config.h" -#define GCC_SKIP_LOCKING #ifdef GCC_SKIP_LOCKING #include // This code is ugly but does speedup the recursor tremendously on multi-processor systems, and even has a large effect (20, 30%) on uniprocessor @@ -152,7 +152,8 @@ void MemRecursorCache::replace(const string &qname, const QType& qt, const set< d_cache.replace(stored, ce); } - + + void MemRecursorCache::doPrune(void) { @@ -213,8 +214,8 @@ void MemRecursorCache::doPrune(void) // cout<<"Walk took "<< dt.udiff()<<"usec\n"; dt.set(); ttdindex.erase(ttdindex.begin(), j); -// cout<<"Erase took "<< dt.udiff()<<" usec, looked: "< > cache_t; struct CacheEntry { + CacheEntry(){} CacheEntry(const string& name, const vector& records) : d_name(name), d_records(records) {} string d_name; @@ -72,6 +75,7 @@ private: earliest=min(earliest, i->d_ttd); return earliest; } + }; typedef multi_index_container< @@ -82,9 +86,9 @@ private: > > cache_t; - private: cache_t d_cache; + };