]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Copy entries retrieved from the negative cache right away 9251/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 17 Jun 2020 13:05:38 +0000 (15:05 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 17 Jun 2020 13:05:38 +0000 (15:05 +0200)
commit33433a8a881de5824d80091419edfcb9d113e927
treea70f76246986cafd2fae24f1a3817776e1bd9df3
parentf7d35114ab4153d0456d893c8694a0e6afa7ea20
rec: Copy entries retrieved from the negative cache right away

The optimization of not copying the entry until we actually decide
to use it seemed nice, but the resulting interface is too brittle.
It requires not keeping the pointer around if there is any chance
that we could yield by going to the network, which is hard to keep
track of in the recursor.
pdns/recursordist/negcache.cc
pdns/recursordist/negcache.hh
pdns/recursordist/test-negcache_cc.cc
pdns/recursordist/test-syncres_cc8.cc
pdns/recursordist/test-syncres_cc9.cc
pdns/syncres.cc