Permalink
Browse files

Remove TTL from dedup path, thanks @mind04

  • Loading branch information...
1 parent 2358eea commit df2d20a698162a948e8a1fe262416d16d2a14dad @pieterlexis pieterlexis committed Nov 2, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/signingpipe.cc
View
@@ -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;

0 comments on commit df2d20a

Please sign in to comment.