#include <boost/algorithm/string.hpp>
#include <iostream>
#include "base64.hh"
-using namespace boost;
+#include "namespaces.hh"
RecordTextReader::RecordTextReader(const string& str, const string& zone) : d_string(str), d_zone(zone), d_pos(0), d_end(str.size())
{
tm.tm_year-=1900;
tm.tm_mon-=1;
-
val=(uint32_t)timegm(&tm);
}
void deliverAnswer(DomainInfo& i, uint32_t serial)
{
d_serials[i.id]=serial;
- //cerr<<"Got a serial of "<<serial<<" for "<<i.zone<<endl;
}
Resolver d_resolver;
}
}
L<<Logger::Warning<<"Received serial number updates for "<<ssr.d_serials.size()<<" zones"<<endl;
- int suckRequests=0;
+
BOOST_FOREACH(DomainInfo& di, sdomains) {
if(!ssr.d_serials.count(di.id))
continue;
else {
L<<Logger::Warning<<"Domain "<< di.zone<<" is stale, master serial "<<theirserial<<", our serial "<< ourserial <<endl;
addSuckRequest(di.zone, *di.masters.begin());
- suckRequests++;
}
}
- L<<Logger::Warning<<"Attempted "<<suckRequests<<" zone transfers"<<endl;
}