// $Id$
#include <string>
#include <map>
-
#include "pdns/namespaces.hh"
-
#include "pdns/dns.hh"
#include "pdns/dnsbackend.hh"
#include "gmysqlbackend.hh"
#include "pdns/ahuexception.hh"
#include "pdns/logger.hh"
#include "pdns/arguments.hh"
-
#include "smysql.hh"
-
-
#include <sstream>
gMySQLBackend::gMySQLBackend(const string &mode, const string &suffix) : GSQLBackend(mode,suffix)
void DNSPacket::addRecord(const DNSResourceRecord &rr)
{
+ // this removes duplicates from the packet in case we are not compressing
+ // for AXFR, no such checking is performed!
if(d_compress)
for(vector<DNSResourceRecord>::const_iterator i=d_rrs.begin();i!=d_rrs.end();++i)
if(rr.qname==i->qname && rr.qtype==i->qtype && rr.content==i->content) {
/*
PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002-2011 PowerDNS.COM BV
+ Copyright (C) 2002-2012 PowerDNS.COM BV
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
L<<Logger::Error<<"TCP nameserver had error, cycling backend: "<<ae.reason<<endl;
}
catch(NetworkError &e) {
- L<<Logger::Info<<"TCP Connection Thread died because of STL error: "<<e.what()<<endl;
+ L<<Logger::Info<<"TCP Connection Thread died because of network error: "<<e.what()<<endl;
}
catch(std::exception &e) {