mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-04 21:42:04 -04:00
Use attach()/detach() functions instead of touching .references
In rbtdb.c, there were places where the code touched .references directly instead of using the helper functions. Use the helper functions instead.
This commit is contained in:
parent
8002fda38c
commit
db5803a0ec
1 changed files with 2 additions and 2 deletions
|
|
@ -1417,7 +1417,7 @@ dns__rbtdb_decref(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
|
|||
UNUSED(refs);
|
||||
#endif
|
||||
|
||||
if (KEEP_NODE(node, rbtdb, (locked || write_locked))) {
|
||||
if (KEEP_NODE(node, rbtdb, locked || write_locked)) {
|
||||
goto restore_locks;
|
||||
}
|
||||
|
||||
|
|
@ -2030,7 +2030,7 @@ dns__rbtdb_closeversion(dns_db_t *db, dns_dbversion_t **versionp,
|
|||
sizeof(*changed));
|
||||
}
|
||||
if (rbtdb->loop != NULL) {
|
||||
isc_refcount_increment(&rbtdb->common.references);
|
||||
dns_db_attach((dns_db_t *)rbtdb, &(dns_db_t *){ NULL });
|
||||
isc_async_run(rbtdb->loop, cleanup_dead_nodes_callback,
|
||||
rbtdb);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue