Changeset 1455

Show
Ignore:
Timestamp:
12/21/09 14:33:48 (3 years ago)
Author:
ahu
Message:

bring rcpgenerator into the world of namespaces.hh, plus remove some debugging form slavecommunicator.cc

Location:
trunk/pdns/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/rcpgenerator.cc

    r1406 r1455  
    2424#include <iostream> 
    2525#include "base64.hh" 
    26 using namespace boost; 
     26#include "namespaces.hh" 
    2727 
    2828RecordTextReader::RecordTextReader(const string& str, const string& zone) : d_string(str), d_zone(zone), d_pos(0), d_end(str.size()) 
     
    7878  tm.tm_year-=1900; 
    7979  tm.tm_mon-=1; 
    80    
    8180  val=(uint32_t)timegm(&tm); 
    8281} 
  • trunk/pdns/pdns/slavecommunicator.cc

    r1449 r1455  
    151151  { 
    152152    d_serials[i.id]=serial; 
    153     //cerr<<"Got a serial of "<<serial<<" for "<<i.zone<<endl; 
    154153  } 
    155154   
     
    193192  } 
    194193  L<<Logger::Warning<<"Received serial number updates for "<<ssr.d_serials.size()<<" zones"<<endl; 
    195   int suckRequests=0; 
     194 
    196195  BOOST_FOREACH(DomainInfo& di, sdomains) { 
    197196    if(!ssr.d_serials.count(di.id))  
     
    210209      L<<Logger::Warning<<"Domain "<< di.zone<<" is stale, master serial "<<theirserial<<", our serial "<< ourserial <<endl; 
    211210      addSuckRequest(di.zone, *di.masters.begin()); 
    212       suckRequests++; 
    213     } 
    214   } 
    215   L<<Logger::Warning<<"Attempted "<<suckRequests<<" zone transfers"<<endl; 
     211    } 
     212  } 
    216213 
    217214