]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1886. [bug] Fix unreasonably low quantum on call to
authorMark Andrews <marka@isc.org>
Fri, 17 Jun 2005 01:00:08 +0000 (01:00 +0000)
committerMark Andrews <marka@isc.org>
Fri, 17 Jun 2005 01:00:08 +0000 (01:00 +0000)
                        dns_rbt_destroy2().  Remove unnecessay unhash_node()
                        call. [RT #14919]

CHANGES
lib/dns/rbt.c
lib/dns/rbtdb.c

diff --git a/CHANGES b/CHANGES
index fc12d53a06212e186a22f3c0901b5146d2379550..8bb442dda624845d1a3dca52b2a68283b074f762 100644 (file)
--- 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]
 
index 1f3463f9ece384106bbe509dcf64a628a35a1fca..74523d96bdb5bf69307f1c7fa7a0da1282d17732 100644 (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
index ef477d715fd949de26a1200028432ec1e681c119..e3c3c579f40d81d546f46c92770a2084d96e6dfc 100644 (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)