diff --git a/CHANGES b/CHANGES index fc12d53a06..8bb442dda6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +1886. [bug] Fix unreasonably low quantum on call to + dns_rbt_destroy2(). Remove unnecessay unhash_node() + call. [RT #14919] + 1885. [func] Additional memory debugging support to track size and mctx arguements. [RT #14814] diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index 1f3463f9ec..74523d96bd 100644 --- a/lib/dns/rbt.c +++ b/lib/dns/rbt.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rbt.c,v 1.133 2005/06/04 05:32:46 jinmei Exp $ */ +/* $Id: rbt.c,v 1.134 2005/06/17 01:00:08 marka Exp $ */ /*! \file */ @@ -2082,7 +2082,10 @@ dns_rbt_deletetreeflat(dns_rbt_t *rbt, unsigned int quantum, if (DATA(node) != NULL && rbt->data_deleter2 != NULL) rbt->data_deleter2(node, rbt->deleter_arg); - unhash_node(rbt, node); + /* + * Note: we don't call unhash_node() here as we are destroying + * the complete rbt tree. + */ #if DNS_RBT_USEMAGIC node->magic = 0; #endif diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index ef477d715f..e3c3c579f4 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rbtdb.c,v 1.207 2005/06/04 05:32:46 jinmei Exp $ */ +/* $Id: rbtdb.c,v 1.208 2005/06/17 01:00:08 marka Exp $ */ /*! \file */ @@ -566,7 +566,7 @@ free_rbtdb(dns_rbtdb_t *rbtdb, isc_boolean_t log, isc_event_t *event) { again: if (rbtdb->tree != NULL) { result = dns_rbt_destroy2(&rbtdb->tree, - (rbtdb->task != NULL) ? 5 : 0); + (rbtdb->task != NULL) ? 1000 : 0); if (result == ISC_R_QUOTA) { INSIST(rbtdb->task != NULL); if (event == NULL)