Changeset 1429
- Timestamp:
- 10/11/09 14:52:27 (11 months ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 3 modified
-
rec_channel.cc (modified) (1 diff)
-
rec_channel_rec.cc (modified) (4 diffs)
-
resolver.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/rec_channel.cc
r1366 r1429 2 2 #include <sys/socket.h> 3 3 #include <cerrno> 4 #include <string.h> 4 5 #include <cstdlib> 5 6 #include <unistd.h> -
trunk/pdns/pdns/rec_channel_rec.cc
r1413 r1429 24 24 25 25 using namespace std; 26 using namespace boost; 26 #include "namespaces.hh" 27 27 map<string, const uint32_t*> d_get32bitpointers; 28 28 map<string, const uint64_t*> d_get64bitpointers; … … 77 77 string ret; 78 78 string parm; 79 using boost::replace_all; 79 80 for(T i=begin; i != end; ++i) { 80 81 if(::arg().parmIsset(*i)) { … … 231 232 addGetStat("cache-misses", &RC.cacheMisses); 232 233 233 addGetStat("cache-entries", boost::bind(&MemRecursorCache::size, ref(RC)));234 addGetStat("cache-entries", boost::bind(&MemRecursorCache::size, boost::ref(RC))); 234 235 addGetStat("servfail-answers", &g_stats.servFails); 235 236 addGetStat("nxdomain-answers", &g_stats.nxDomains); … … 268 269 269 270 addGetStat("negcache-entries", boost::bind(getNegCacheSize)); 270 addGetStat("throttle-entries", boost::bind(&SyncRes::throttle_t::size, ref(SyncRes::s_throttle)));271 addGetStat("throttle-entries", boost::bind(&SyncRes::throttle_t::size, boost::ref(SyncRes::s_throttle))); 271 272 272 273 addGetStat("negcache-entries", boost::bind(getNsSpeedsSize)); 273 274 274 addGetStat("concurrent-queries", boost::bind(&MTasker<PacketID,string>::numProcesses, ref(MT)));275 addGetStat("concurrent-queries", boost::bind(&MTasker<PacketID,string>::numProcesses, boost::ref(MT))); 275 276 addGetStat("outgoing-timeouts", &SyncRes::s_outgoingtimeouts); 276 277 addGetStat("tcp-outqueries", &SyncRes::s_tcpoutqueries); -
trunk/pdns/pdns/resolver.cc
r1278 r1429 41 41 #include "dns_random.hh" 42 42 43 using namespace boost; 43 #include "namespaces.hh" 44 44 45 45 void Resolver::makeUDPSocket() … … 419 419 rr.qname = i->first.d_label; 420 420 if(!rr.qname.empty()) 421 erase_tail(rr.qname, 1); // strip .421 boost::erase_tail(rr.qname, 1); // strip . 422 422 rr.qtype = i->first.d_type; 423 423 rr.ttl = i->first.d_ttl; … … 427 427 428 428 if(!rr.content.empty() && (qtype==QType::MX || qtype==QType::NS || qtype==QType::CNAME)) 429 erase_tail(rr.content, 1);429 boost::erase_tail(rr.content, 1); 430 430 431 431 if(rr.qtype.getCode() == QType::MX) {