]> git.ipfire.org Git - thirdparty/bind9.git/commit
catz: use two pairs of dns_db_t and dns_dbversion_t in a catalog zone
authorAram Sargsyan <aram@isc.org>
Thu, 2 Mar 2023 08:52:25 +0000 (08:52 +0000)
committerAram Sargsyan <aram@isc.org>
Thu, 2 Mar 2023 18:57:16 +0000 (18:57 +0000)
commit574682b8c7e4e4bfb98b14f16bc333d3c32953d2
tree70b30c527c9122aafbff118b108c90affbfd44f2
parent363061a1fcc61748d7a46d1ea0421da37b736a93
catz: use two pairs of dns_db_t and dns_dbversion_t in a catalog zone

As it is done in the RPZ module, use 'db' and 'dbversion' for the
database we are going to update to, and 'updb' and 'updbversion' for
the database we are working on.

Doing this should avoid a race between the 'dns__catz_update_cb()' and
'dns_catz_dbupdate_callback()' functions.

(cherry picked from commit d2ecff3c4a0d961041b860515858d258d40462d7)
lib/dns/catz.c