]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add comments 'tree_lock(write) must be held'
authorMark Andrews <marka@isc.org>
Wed, 27 Nov 2019 09:00:26 +0000 (20:00 +1100)
committerMark Andrews <marka@isc.org>
Wed, 27 Nov 2019 09:58:15 +0000 (09:58 +0000)
lib/dns/rbtdb.c

index efc5a7c89572e1a304263b6177f0835ab84a9401..e5646f3aaa5b93d4718af60d9a6ac98f8d702263 100644 (file)
@@ -1728,6 +1728,9 @@ clean_zone_node(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
                node->dirty = 0;
 }
 
+/*
+ * tree_lock(write) must be held.
+ */
 static void
 delete_node(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node) {
        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
  * must ensure that "sub.example." exists and is marked as
  * a wildcard level.
+ *
+ * tree_lock(write) must be held.
  */
 static isc_result_t
 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);
 }
 
+/*
+ * tree_lock(write) must be held.
+ */
 static isc_result_t
 add_empty_wildcards(dns_rbtdb_t *rbtdb, const dns_name_t *name) {
        isc_result_t result;