]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
reinstate duplicate record detection, slowing us down tremendously until we speed...
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 5 Sep 2016 09:01:22 +0000 (11:01 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 13 Sep 2016 10:53:30 +0000 (12:53 +0200)
pdns/dnspacket.cc

index 7294ffa737b52abb6acb915b1438af846506c8ed..36dae058f13e885bc20e0f10982543c67ca60932 100644 (file)
@@ -179,9 +179,9 @@ void DNSPacket::addRecord(const DNSZoneRecord &rr)
   // this removes duplicates from the packet in case we are not compressing
   // for AXFR, no such checking is performed!
   // cerr<<"addrecord, content=["<<rr.content<<"]"<<endl;
-  if(0 && d_compress) {
+  if(d_compress) {
     for(auto i=d_rrs.begin();i!=d_rrs.end();++i) {
-      if(rr.dr == i->dr)
+      if(rr.dr == i->dr)  // XXX SUPER SLOW
           return;
     }
   }