Changeset 585

Show
Ignore:
Timestamp:
03/15/06 19:11:12 (7 years ago)
Author:
ahu
Message:

update documentation, make sure we ship sgml expander, make sure we don't always skip locks,

Location:
trunk/pdns/pdns
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/Makefile.am

    r576 r585  
    22AM_CPPFLAGS=-Ibackends/bind @THREADFLAGS@ 
    33 
    4 EXTRA_DIST = docs/Makefile \ 
     4EXTRA_DIST = docs/Makefile docs/expand \ 
    55docs/gslb-operations.sgml docs/powerdns-case.sgml docs/powerdns-install.sgml \ 
    66docs/powerdns-overview.sgml docs/powerdns-technical.sgml  \ 
  • trunk/pdns/pdns/arguments.hh

    r568 r585  
    2727#include "misc.hh" 
    2828#include "ahuexception.hh" 
    29  
    3029 
    3130using namespace std; 
  • trunk/pdns/pdns/docs/pdns.sgml

    r576 r585  
    139139            <listitem> 
    140140              <para> 
    141                 Cache was pruned every minute, which was too often. Now once every 5 minutes, c574. 
     141                Move recursor to the incredible boost::multi_index_container (c580). This brings a huge improvement 
     142                in cache pruning times. 
    142143              </para> 
    143144            </listitem> 
     
    168169                On some compilers, processing of NAPTR records could cause the server to crash. Reported by Bernd Froemel  
    169170                in t29, fixed in c538. 
     171              </para> 
     172            </listitem> 
     173            <listitem> 
     174              <para> 
     175                Backend errors could make the whole nameserver exit under some circumstances, notably using the LDAP backend. Fixed in c583, reported in 
     176                t62. 
    170177              </para> 
    171178            </listitem> 
  • trunk/pdns/pdns/recursor_cache.cc

    r580 r585  
    44#include <boost/shared_ptr.hpp> 
    55#include "dnsrecords.hh" 
     6 
    67using namespace std; 
    78using namespace boost; 
    89 
    910#include "config.h" 
    10 #define GCC_SKIP_LOCKING 
    1111#ifdef GCC_SKIP_LOCKING 
    1212#include <bits/atomicity.h> 
     
    153153  d_cache.replace(stored, ce); 
    154154} 
    155    
     155 
     156 
    156157 
    157158void MemRecursorCache::doPrune(void) 
     
    214215  dt.set(); 
    215216  ttdindex.erase(ttdindex.begin(), j); 
    216 //  cout<<"Erase took "<< dt.udiff()<<" usec, looked: "<<looked<<", quick: "<<quickZonk<<", full: "; 
    217 //  cout<<fullZonk<<", partial: "<<partialZonk<<", no: "<<noZonk<<"\n"; 
     217  //  cout<<"Erase took "<< dt.udiff()<<" usec, looked: "<<looked<<", quick: "<<quickZonk<<", full: "; 
     218  //  cout<<fullZonk<<", partial: "<<partialZonk<<", no: "<<noZonk<<"\n"; 
    218219  //  cache_t(d_cache).swap(d_cache); 
    219220} 
  • trunk/pdns/pdns/recursor_cache.hh

    r582 r585  
    1616using namespace boost; 
    1717using namespace ::boost::multi_index; 
     18 
    1819 
    1920class MemRecursorCache : public boost::noncopyable //  : public RecursorCache 
     
    4344      return 4+d_string.size(); 
    4445    } 
     46 
    4547  }; 
    4648 
     
    6163  struct CacheEntry 
    6264  { 
     65    CacheEntry(){} 
    6366    CacheEntry(const string& name, const vector<StoredRecord>& records) : d_name(name), d_records(records) 
    6467    {} 
     
    7376      return earliest; 
    7477    } 
     78 
    7579  }; 
    7680 
     
    8387  > cache_t; 
    8488 
    85  
    8689private: 
    8790  cache_t d_cache; 
     91 
    8892}; 
    8993