BIND 10 trac2108_3, updated. 99db6f4f616fb7ab7d66147c661f0efd544e69f1 [2108] Add a findZone() variant temporarily to derive from DataSourceClient
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Sep 4 03:31:11 UTC 2012
The branch, trac2108_3 has been updated
via 99db6f4f616fb7ab7d66147c661f0efd544e69f1 (commit)
from 9be7fe08ea3b0833049fea4e34a96a992f174329 (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 99db6f4f616fb7ab7d66147c661f0efd544e69f1
Author: Mukund Sivaraman <muks at isc.org>
Date: Tue Sep 4 09:00:55 2012 +0530
[2108] Add a findZone() variant temporarily to derive from DataSourceClient
Its implementation just throws.
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/memory/memory_client.cc | 13 +++++++++++--
src/lib/datasrc/memory/memory_client.h | 15 ++++++++++++++-
2 files changed, 25 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/memory_client.cc b/src/lib/datasrc/memory/memory_client.cc
index f90b562..8dd8f8d 100644
--- a/src/lib/datasrc/memory/memory_client.cc
+++ b/src/lib/datasrc/memory/memory_client.cc
@@ -666,13 +666,22 @@ InMemoryClient::getZoneCount() const {
return (impl_->zone_count);
}
-ZoneTable::FindResult
-InMemoryClient::findZone(const isc::dns::Name& zone_name) const {
+isc::datasrc::memory::ZoneTable::FindResult
+InMemoryClient::findZone2(const isc::dns::Name& zone_name) const {
LOG_DEBUG(logger, DBG_TRACE_DATA, DATASRC_MEM_FIND_ZONE).arg(zone_name);
ZoneTable::FindResult result(impl_->zone_table_->findZone(zone_name));
return (result);
}
+isc::datasrc::DataSourceClient::FindResult
+InMemoryClient::findZone(const isc::dns::Name& zone_name) const {
+ // This variant of findZone() is not implemented and should be
+ // removed eventually. It currently throws an exception. It is
+ // required right now to derive from DataSourceClient.
+ isc_throw(isc::NotImplemented,
+ "This variant of findZone() is not implemented.");
+}
+
result::Result
InMemoryClient::load(const isc::dns::Name& zone_name,
const std::string& filename) {
diff --git a/src/lib/datasrc/memory/memory_client.h b/src/lib/datasrc/memory/memory_client.h
index 31cfa01..68d8a18 100644
--- a/src/lib/datasrc/memory/memory_client.h
+++ b/src/lib/datasrc/memory/memory_client.h
@@ -17,6 +17,12 @@
#include <datasrc/client.h>
#include <datasrc/memory/zone_table.h>
+
+// for isc::datasrc::ZoneTable::FindResult returned by findZone(). This
+// variant of findZone() is not implemented and should be removed
+// eventually.
+#include <datasrc/zonetable.h>
+
#include <string>
namespace isc {
@@ -189,7 +195,14 @@ public:
///
/// This derived version of the method never throws an exception.
/// For other details see \c DataSourceClient::findZone().
- virtual ZoneTable::FindResult findZone(const isc::dns::Name& name) const;
+ virtual isc::datasrc::memory::ZoneTable::FindResult
+ findZone2(const isc::dns::Name& name) const;
+
+ // This variant of findZone() is not implemented and should be
+ // removed eventually. It currently throws an exception. It is
+ // required right now to derive from DataSourceClient.
+ virtual isc::datasrc::DataSourceClient::FindResult
+ findZone(const isc::dns::Name& name) const;
/// \brief Implementation of the getIterator method
virtual ZoneIteratorPtr getIterator(const isc::dns::Name& name,
More information about the bind10-changes
mailing list