Commit 5a90bf50 authored by David Lawrence's avatar David Lawrence
Browse files

Fixed up calls to dns_rbt_create and dns_rbt_findnode, which changed

in rbt.c
parent fbcd8c7a
...@@ -222,7 +222,7 @@ findnode(dns_db_t *db, dns_name_t *name, isc_boolean_t create, ...@@ -222,7 +222,7 @@ findnode(dns_db_t *db, dns_name_t *name, isc_boolean_t create,
dns_name_init(&foundname, NULL); dns_name_init(&foundname, NULL);
RWLOCK(&rbtdb->tree_lock, locktype); RWLOCK(&rbtdb->tree_lock, locktype);
node = dns_rbt_findnode(rbtdb->tree, name); node = dns_rbt_findnode(rbtdb->tree, name, NULL);
again: again:
if (node != NULL) { if (node != NULL) {
locknum = node->locknum; locknum = node->locknum;
...@@ -247,7 +247,7 @@ findnode(dns_db_t *db, dns_name_t *name, isc_boolean_t create, ...@@ -247,7 +247,7 @@ findnode(dns_db_t *db, dns_name_t *name, isc_boolean_t create,
RWUNLOCK(&rbtdb->tree_lock, locktype); RWUNLOCK(&rbtdb->tree_lock, locktype);
return (result); return (result);
} }
node = dns_rbt_findnode(rbtdb->tree, name); node = dns_rbt_findnode(rbtdb->tree, name, NULL);
INSIST(node != NULL); INSIST(node != NULL);
node->dirty = 0; node->dirty = 0;
node->references = 0; node->references = 0;
...@@ -539,8 +539,10 @@ dns_rbtdb_create(isc_mem_t *mctx, dns_name_t *base, isc_boolean_t cache, ...@@ -539,8 +539,10 @@ dns_rbtdb_create(isc_mem_t *mctx, dns_name_t *base, isc_boolean_t cache,
/* /*
* Make the Red-Black Tree. * Make the Red-Black Tree.
* XXX NULL should (possibly) be replaced with the method that frees
* the data pointer for a node that is deleted.
*/ */
dresult = dns_rbt_create(mctx, &rbtdb->tree); dresult = dns_rbt_create(mctx, NULL, &rbtdb->tree);
if (dresult != DNS_R_SUCCESS) { if (dresult != DNS_R_SUCCESS) {
free_rbtdb(rbtdb); free_rbtdb(rbtdb);
return (dresult); return (dresult);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment