BIND 10 trac1771, updated. 306a2f48ca3ff87b558194af5b46d371eddea66f [1771] Update may_have_glue comment
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Jun 11 23:43:05 UTC 2012
The branch, trac1771 has been updated
via 306a2f48ca3ff87b558194af5b46d371eddea66f (commit)
via 67c91ca2a723b51268ccf4f5f843380cb1348a32 (commit)
from 10cc00fed2940b79e82cf583ae9b163e6b3833e3 (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 306a2f48ca3ff87b558194af5b46d371eddea66f
Author: Mukund Sivaraman <muks at isc.org>
Date: Tue Jun 12 05:11:20 2012 +0530
[1771] Update may_have_glue comment
commit 67c91ca2a723b51268ccf4f5f843380cb1348a32
Author: Mukund Sivaraman <muks at isc.org>
Date: Tue Jun 12 05:09:07 2012 +0530
[1771] Use name object constructed outside the loop in comparisons
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/database.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/database.cc b/src/lib/datasrc/database.cc
index cd1558c..cc7ece5 100644
--- a/src/lib/datasrc/database.cc
+++ b/src/lib/datasrc/database.cc
@@ -209,7 +209,8 @@ DatabaseClient::Finder::getRRsets(const string& name, const WantedTypes& types,
bool seen_ns(false);
// may_have_glue indicates if glue records may exist for the
- // domain. It is true when records like this are seen:
+ // delegated zone. It is set to true below when the NS name equals
+ // the delegated zone name:
// child.example. IN NS child.example.
bool may_have_glue(false);
@@ -257,7 +258,7 @@ DatabaseClient::Finder::getRRsets(const string& name, const WantedTypes& types,
} else if (cur_type == RRType::NS()) {
seen_ns = true;
- if (Name(columns[DatabaseAccessor::RDATA_COLUMN]) == Name(name))
+ if (Name(columns[DatabaseAccessor::RDATA_COLUMN]) == construct_name_object)
may_have_glue = true;
} else if (cur_type == RRType::DS()) {
seen_ds = true;
More information about the bind10-changes
mailing list