[svn] commit: r4107 - /branches/trac463/src/lib/datasrc/memory_datasrc.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Dec 31 02:30:39 UTC 2010
Author: jinmei
Date: Fri Dec 31 02:30:38 2010
New Revision: 4107
Log:
simplified the flag handling logic, based on a review comment.
Modified:
branches/trac463/src/lib/datasrc/memory_datasrc.cc
Modified: branches/trac463/src/lib/datasrc/memory_datasrc.cc
==============================================================================
--- branches/trac463/src/lib/datasrc/memory_datasrc.cc (original)
+++ branches/trac463/src/lib/datasrc/memory_datasrc.cc Fri Dec 31 02:30:38 2010
@@ -169,7 +169,10 @@
// double check for it?
state->zonecut_node_ = &node;
state->rrset_ = found->second;
- return ((state->options_ & FIND_GLUE_OK) != 0 ? false : true);
+
+ // Unless glue is allowed the search stops here, so we return
+ // false; otherwise return true to continue the search.
+ return ((state->options_ & FIND_GLUE_OK) == 0);
}
// This case should not happen because we enable callback only
More information about the bind10-changes
mailing list