]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/recursor_cache.cc
rec: Only update the ECS cache index when needed 6306/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 26 Feb 2018 14:13:00 +0000 (14:13 +0000)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 26 Feb 2018 15:05:48 +0000 (15:05 +0000)
commitd0fcc32b56de19422dcf014f5645f05b66121328
tree6dcd6bfea19448216f500d75a30ebde04696d3d6
parent32a290946d2ec0f740a437cf58afc8fe1612281c
rec: Only update the ECS cache index when needed

We don't need to update the ECS index when replacing an existing
entry, except if the entry has expired, because then we might have
removed it from the ECS index.
pdns/recursor_cache.cc
pdns/recursordist/test-recursorcache_cc.cc