BIND 10 trac1287, updated. 797d30d14f37c6d3fdce9c1140ffebd91021bfb6 [1278] Interface for the finder in the iterator

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Oct 19 14:36:33 UTC 2011


The branch, trac1287 has been updated
       via  797d30d14f37c6d3fdce9c1140ffebd91021bfb6 (commit)
      from  541ea699442bece13605d34e182ff89bca384a43 (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 797d30d14f37c6d3fdce9c1140ffebd91021bfb6
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Wed Oct 19 16:35:39 2011 +0200

    [1278] Interface for the finder in the iterator

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/database.cc       |    4 ++++
 src/lib/datasrc/iterator.h        |    9 +++++++++
 src/lib/datasrc/memory_datasrc.cc |    4 ++++
 3 files changed, 17 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/database.cc b/src/lib/datasrc/database.cc
index e476297..104dac2 100644
--- a/src/lib/datasrc/database.cc
+++ b/src/lib/datasrc/database.cc
@@ -740,6 +740,10 @@ public:
             arg(rrset->getName()).arg(rrset->getType());
         return (rrset);
     }
+
+    virtual ZoneFinder& getFinder() {
+        isc_throw(NotImplemented, "Not implemented");
+    }
 private:
     // Load next row of data
     void getData() {
diff --git a/src/lib/datasrc/iterator.h b/src/lib/datasrc/iterator.h
index 0102fcb..24ebf7e 100644
--- a/src/lib/datasrc/iterator.h
+++ b/src/lib/datasrc/iterator.h
@@ -16,6 +16,8 @@
 
 #include <boost/noncopyable.hpp>
 
+#include <datasrc/zone.h>
+
 namespace isc {
 namespace datasrc {
 
@@ -55,6 +57,13 @@ public:
      *     gets to the end of the zone.
      */
     virtual isc::dns::ConstRRsetPtr getNextRRset() = 0;
+    /**
+     * \brief Get the finder for the zone being iterated.
+     *
+     * This returns the finder which can be used to query RRs from the zone,
+     * efective to the time when the iterator was created.
+     */
+    virtual ZoneFinder& getFinder() = 0;
 };
 
 }
diff --git a/src/lib/datasrc/memory_datasrc.cc b/src/lib/datasrc/memory_datasrc.cc
index 2b556ab..7778e0a 100644
--- a/src/lib/datasrc/memory_datasrc.cc
+++ b/src/lib/datasrc/memory_datasrc.cc
@@ -780,6 +780,10 @@ public:
 
         return (result);
     }
+
+    virtual ZoneFinder& getFinder() {
+        isc_throw(NotImplemented, "Not imelemented");
+    }
 };
 
 } // End of anonymous namespace




More information about the bind10-changes mailing list