]> granicus.if.org Git - pdns/commitdiff
Remove TTL from dedup path, thanks @mind04
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 2 Nov 2015 17:16:12 +0000 (18:16 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 2 Nov 2015 17:16:12 +0000 (18:16 +0100)
pdns/signingpipe.cc

index 367f08abde4097a52d8d105b1ace2afbe0f33a55..802cc520d5b7c57dc06693f792c17c2b8d5877d1 100644 (file)
@@ -114,12 +114,12 @@ bool dedupLessThan(const DNSResourceRecord& a, const DNSResourceRecord &b)
     aprio = a.priority;
   if (b.qtype.getCode() == QType::MX || b.qtype.getCode() == QType::SRV)
     bprio = b.priority;
-  return tie(a.content, a.ttl, aprio) < tie(b.content, b.ttl, bprio);
+  return tie(a.content, aprio) < tie(b.content, bprio);
 }
 
 bool dedupEqual(const DNSResourceRecord& a, const DNSResourceRecord &b)
 {
-  if(tie(a.content, a.ttl) != tie(b.content, b.ttl))
+  if(a.content != b.content)
     return false;
   if(a.qtype.getCode() == QType::MX || a.qtype.getCode() == QType::SRV)
     return a.priority == b.priority;