BIND 10 trac1177, updated. 03e9f45f8a6584a373f1bd15f01f56d9296c842a [1177] Adapt the rest of the code
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Sep 9 12:42:35 UTC 2011
The branch, trac1177 has been updated
via 03e9f45f8a6584a373f1bd15f01f56d9296c842a (commit)
from cb4d8443645a5c3e973b4e2477198686d8d8c507 (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 03e9f45f8a6584a373f1bd15f01f56d9296c842a
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Fri Sep 9 14:41:52 2011 +0200
[1177] Adapt the rest of the code
There are some (yet unused) virtual methods and result codes, so we need
to make sure the rest compiles. Just a thin layer for now.
-----------------------------------------------------------------------
Summary of changes:
src/bin/auth/query.cc | 7 +++++++
src/bin/auth/tests/query_unittest.cc | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/auth/query.cc b/src/bin/auth/query.cc
index 898fff7..ab6404e 100644
--- a/src/bin/auth/query.cc
+++ b/src/bin/auth/query.cc
@@ -253,6 +253,13 @@ Query::process() const {
// Just empty answer with SOA in authority section
putSOA(*result.zone_finder);
break;
+ default:
+ // These are new result codes (WILDCARD and WILDCARD_NXRRSET)
+ // They should not happen from the in-memory and the database
+ // backend isn't used yet.
+ // TODO: Implement before letting the database backends in
+ isc_throw(isc::NotImplemented, "Unknown result code");
+ break;
}
}
}
diff --git a/src/bin/auth/tests/query_unittest.cc b/src/bin/auth/tests/query_unittest.cc
index 4b8f013..b2d1094 100644
--- a/src/bin/auth/tests/query_unittest.cc
+++ b/src/bin/auth/tests/query_unittest.cc
@@ -141,6 +141,10 @@ public:
// Turn this on if you want it to return RRSIGs regardless of FIND_GLUE_OK
void setIncludeRRSIGAnyway(bool on) { include_rrsig_anyway_ = on; }
+ Name findPreviousName(const Name&) const {
+ isc_throw(isc::NotImplemented, "Mock doesn't support previous name");
+ }
+
private:
typedef map<RRType, ConstRRsetPtr> RRsetStore;
typedef map<Name, RRsetStore> Domains;
More information about the bind10-changes
mailing list