BIND 10 trac2750, updated. 038082d3a8df1904538a11a6b803bec1804f9c8b [2750] Adjust more pointers to make the exchange complete

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Aug 26 10:39:36 UTC 2013


The branch, trac2750 has been updated
       via  038082d3a8df1904538a11a6b803bec1804f9c8b (commit)
      from  918419085f722e43c567d4498e6ca581d925ce26 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 038082d3a8df1904538a11a6b803bec1804f9c8b
Author: Mukund Sivaraman <muks at isc.org>
Date:   Mon Aug 26 16:09:24 2013 +0530

    [2750] Adjust more pointers to make the exchange complete

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/memory/domaintree.h |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/domaintree.h b/src/lib/datasrc/memory/domaintree.h
index 5901d91..4887042 100644
--- a/src/lib/datasrc/memory/domaintree.h
+++ b/src/lib/datasrc/memory/domaintree.h
@@ -681,11 +681,17 @@ private:
         } else {
             if (other->getParent()->getLeft() == this) {
                 other->getParent()->left_ = other;
-            } else {
+            } else if (other->getParent()->getRight() == this) {
                 other->getParent()->right_ = other;
             }
         }
 
+        if (getParent()->getLeft() == other) {
+            getParent()->left_ = this;
+        } else if (getParent()->getRight() == other) {
+            getParent()->right_ = this;
+        }
+
         if (other->getRight()) {
             other->getRight()->parent_ = other;
         }



More information about the bind10-changes mailing list