]> 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)
committerOndřej Surý <ondrej@isc.org>
Wed, 27 Nov 2019 17:06:05 +0000 (18:06 +0100)
(cherry picked from commit 8f6aaa7230b8d40c2acadc9c05c384052522af76)

lib/dns/rbtdb.c

index bdff3a887893971c3484ad7d2020067dea6b6ea5..b1319f3248473b9f9a57bb0d5ec63274ab3a44fe 100644 (file)
@@ -1972,6 +1972,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;
@@ -2955,6 +2958,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, dns_name_t *name) {
@@ -2979,6 +2984,9 @@ add_wildcard_magic(dns_rbtdb_t *rbtdb, 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, dns_name_t *name) {
        isc_result_t result;