1886. [bug] Fix unreasonably low quantum on call to

dns_rbt_destroy2().  Remove unnecessay unhash_node()
                        call. [RT #14919]
This commit is contained in:
Mark Andrews
2005-06-17 01:00:08 +00:00
parent a0e9df38e5
commit 83a56f1e4f
3 changed files with 11 additions and 4 deletions
+4
View File
@@ -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]
+5 -2
View File
@@ -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
+2 -2
View File
@@ -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)