]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Don't parse the QName in the packet cache if we already have it 5102/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 22 Feb 2017 16:42:02 +0000 (17:42 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 2 Mar 2017 21:58:38 +0000 (22:58 +0100)
commitc15ff3dff8172940b70609298b673c6add973e03
tree862dae62bf783ab2f99198724f41a27aae7ef8a0
parent6b68a4e39633422a3dbae5d3dac7358aa79ff76c
rec: Don't parse the QName in the packet cache if we already have it

When `gettag()` or protobuf are enabled, we have already parsed the
qname, qtype and qclass so pass them to the Packet Cache instead of
parsing them again.
Don't parse them several times if we have more than one match from
the cache either.
pdns/pdns_recursor.cc
pdns/recpacketcache.cc
pdns/recpacketcache.hh
pdns/test-recpacketcache_cc.cc