Merge branch '4418-catz-rbtdb-cds_lfht_destroy-failed' into 'main'

Fix catz db update callback registration logic error (take two)

Closes #4418

See merge request isc-projects/bind9!8476
This commit is contained in:
Arаm Sаrgsyаn
2023-11-14 10:07:11 +00:00
2 changed files with 6 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
6284. [bug] Fix a catz db update notification callback registration
logic error, which could cause an assertion failure when
receiving an AXFR update for a catalog zone while the
previous update process of the catalog zone was already
running. [GL #4418]
6283. [bug] Fix a data race in isc_hashmap by using atomics for the
iterators number. [GL !8474]

View File

@@ -2493,15 +2493,6 @@ dns__catz_update_cb(void *data) {
ISC_LOG_DEBUG(3),
"catz: update_from_db: new zone merged");
/*
* When we're doing reconfig and setting a new catalog zone
* from an existing zone we won't have a chance to set up
* update callback in zone_startload or axfr_makedb, but we will
* call onupdate() artificially so we can register the callback here.
*/
dns_db_updatenotify_register(updb, dns_catz_dbupdate_callback,
oldcatz->catzs);
exit:
catz->updateresult = result;
}