From: Pieter Lexis Date: Mon, 2 Nov 2015 17:16:12 +0000 (+0100) Subject: Remove TTL from dedup path, thanks @mind04 X-Git-Tag: auth-3.4.7~2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df2d20a698162a948e8a1fe262416d16d2a14dad;p=pdns Remove TTL from dedup path, thanks @mind04 --- diff --git a/pdns/signingpipe.cc b/pdns/signingpipe.cc index 367f08abd..802cc520d 100644 --- a/pdns/signingpipe.cc +++ b/pdns/signingpipe.cc @@ -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;