]> git.ipfire.org Git - thirdparty/bind9.git/commit
In dns_zonemgr_unreachable use atomics to avoid unnecessary
authorWitold Kręcicki <wpk@isc.org>
Wed, 5 Jun 2019 20:07:50 +0000 (22:07 +0200)
committerWitold Kręcicki <wpk@isc.org>
Tue, 11 Jun 2019 07:38:59 +0000 (09:38 +0200)
commit68eb9a7c6a0b03545c003d82f4258b9530d2f508
tree986daa9150c27ab584212aa3e6ba53f168a03759
parent34db730ee3d395b0658620531a58aac90c2659ec
In dns_zonemgr_unreachable use atomics to avoid unnecessary
write locking.

Unreachable cache in zonemgr is realized as an static LRU list.
When we 'use' an entry we need to update the last-used time, we
can use atomics to do so without the necessity to upgrading
read-lock to write-lock.
lib/dns/zone.c