]> granicus.if.org Git - pdns/commit
auth: Avoid contention issues in the packet cache's unit tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 18 Mar 2019 16:24:18 +0000 (17:24 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 18 Mar 2019 16:24:18 +0000 (17:24 +0100)
commit6ac1a991cfb253f87a81551d9eba36c11d816cfe
tree4368b06316823f68e4e48da9683a0789ba8e3c56
parentacaa0761460478d6f58c47a5f327a4504e827b44
auth: Avoid contention issues in the packet cache's unit tests

We used to do a retrieval from the cache to compute the hash, but
that could have failed due to another thread already having the
relevant lock ("deferred-lookup"), resulting the hash value not
being updated.
pdns/test-packetcache_cc.cc