From: Mukund Sivaraman Date: Mon, 5 Aug 2013 05:38:20 +0000 (+0530) Subject: [2811] Explicitly break out of loop after rebalancing tree X-Git-Tag: bind10-1.2.0beta1-release~301^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07f62405839389c802c751ddac3ca0dd43ceb754;p=thirdparty%2Fkea.git [2811] Explicitly break out of loop after rebalancing tree --- diff --git a/src/lib/datasrc/memory/domaintree.h b/src/lib/datasrc/memory/domaintree.h index 3c8db0b846..5f41371903 100644 --- a/src/lib/datasrc/memory/domaintree.h +++ b/src/lib/datasrc/memory/domaintree.h @@ -2082,6 +2082,12 @@ DomainTree::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; } }