Show
Ignore:
Timestamp:
04/04/06 17:26:07 (4 years ago)
Author:
ahu
Message:

move cache to being pruned 'CLOCK' fashion

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/recursor_cache.hh

    r646 r656  
    1212#include <boost/tuple/tuple_comparison.hpp> 
    1313#include <boost/multi_index/key_extractors.hpp> 
     14#include <boost/multi_index/sequenced_index.hpp> 
    1415#include <boost/version.hpp> 
    1516#if BOOST_VERSION >= 103300 
     
    3233  void replace(const string &qname, const QType& qt,  const set<DNSResourceRecord>& content); 
    3334  void doPrune(void); 
     35  void doSlash(int perc); 
    3436  void doDumpAndClose(int fd); 
    3537  void doWipeCache(const string& name); 
     
    103105                      > 
    104106                >, 
    105                 ordered_non_unique<const_mem_fun<CacheEntry,uint32_t,&CacheEntry::getTTD> > 
     107               sequenced<> 
    106108               > 
    107109  > cache_t; 
     
    109111private: 
    110112  cache_t d_cache; 
    111   pair<cache_t::const_iterator, cache_t::const_iterator> d_cachecache; 
     113  pair<cache_t::iterator, cache_t::iterator> d_cachecache; 
    112114  string d_cachedqname; 
    113115  bool d_cachecachevalid;