BIND 10 trac2811_2, updated. 07f62405839389c802c751ddac3ca0dd43ceb754 [2811] Explicitly break out of loop after rebalancing tree

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Aug 5 05:43:17 UTC 2013


The branch, trac2811_2 has been updated
       via  07f62405839389c802c751ddac3ca0dd43ceb754 (commit)
      from  ccdb49aa255c988dd3f03be21b9511794af288f5 (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 07f62405839389c802c751ddac3ca0dd43ceb754
Author: Mukund Sivaraman <muks at isc.org>
Date:   Mon Aug 5 11:08:20 2013 +0530

    [2811] Explicitly break out of loop after rebalancing tree

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

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

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/domaintree.h b/src/lib/datasrc/memory/domaintree.h
index 3c8db0b..5f41371 100644
--- a/src/lib/datasrc/memory/domaintree.h
+++ b/src/lib/datasrc/memory/domaintree.h
@@ -2082,6 +2082,12 @@ DomainTree<T>::insertRebalance
             } else {
                 leftRotate(subtree_root, grandparent);
             }
+
+            // In this case, the tree is ready now and we explicitly
+            // break out of the loop here. Even if we continue the loop,
+            // it will exit the loop in case 2 above, but that's not so
+            // obvious.
+            break;
         }
     }
 



More information about the bind10-changes mailing list