BIND 10 trac2750, updated. 49c71998445264c8882c3b8389edd4bbd74c22f1 [2750] Simplify code
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Sep 4 04:04:41 UTC 2013
The branch, trac2750 has been updated
via 49c71998445264c8882c3b8389edd4bbd74c22f1 (commit)
from 0a5bd2ebb43c45ebab9f466d102a3c9e4c024efa (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 49c71998445264c8882c3b8389edd4bbd74c22f1
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Sep 4 09:32:56 2013 +0530
[2750] Simplify code
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/memory/domaintree.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/domaintree.h b/src/lib/datasrc/memory/domaintree.h
index 3f23629..df52ed8 100644
--- a/src/lib/datasrc/memory/domaintree.h
+++ b/src/lib/datasrc/memory/domaintree.h
@@ -3071,13 +3071,13 @@ DomainTree<T>::checkPropertiesHelper(const DomainTreeNode<T>* node) const {
return (true);
}
- // Root nodes should be BLACK.
- if (node->isSubTreeRoot() && node->isRed()) {
- return (false);
- }
-
- // Both children of RED nodes must be BLACK.
if (node->isRed()) {
+ // Root nodes must be BLACK.
+ if (node->isSubTreeRoot()) {
+ return (false);
+ }
+
+ // Both children of RED nodes must be BLACK.
if (DomainTreeNode<T>::isRed(node->getLeft()) ||
DomainTreeNode<T>::isRed(node->getRight()))
{
More information about the bind10-changes
mailing list