2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

add comments 'tree_lock(write) must be held'

This commit is contained in:
Mark Andrews
2019-11-27 20:00:26 +11:00
parent 7cad3b2e91
commit 8f6aaa7230

View File

@@ -1728,6 +1728,9 @@ clean_zone_node(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
node->dirty = 0; node->dirty = 0;
} }
/*
* tree_lock(write) must be held.
*/
static void static void
delete_node(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node) { delete_node(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node) {
dns_rbtnode_t *nsecnode; dns_rbtnode_t *nsecnode;
@@ -2652,6 +2655,8 @@ closeversion(dns_db_t *db, dns_dbversion_t **versionp, bool commit) {
* E.g. if the wildcard name is "*.sub.example." then we * E.g. if the wildcard name is "*.sub.example." then we
* must ensure that "sub.example." exists and is marked as * must ensure that "sub.example." exists and is marked as
* a wildcard level. * a wildcard level.
*
* tree_lock(write) must be held.
*/ */
static isc_result_t static isc_result_t
add_wildcard_magic(dns_rbtdb_t *rbtdb, const dns_name_t *name) { add_wildcard_magic(dns_rbtdb_t *rbtdb, const dns_name_t *name) {
@@ -2676,6 +2681,9 @@ add_wildcard_magic(dns_rbtdb_t *rbtdb, const dns_name_t *name) {
return (ISC_R_SUCCESS); return (ISC_R_SUCCESS);
} }
/*
* tree_lock(write) must be held.
*/
static isc_result_t static isc_result_t
add_empty_wildcards(dns_rbtdb_t *rbtdb, const dns_name_t *name) { add_empty_wildcards(dns_rbtdb_t *rbtdb, const dns_name_t *name) {
isc_result_t result; isc_result_t result;