]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1758] Make it compile
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 14 Mar 2012 14:59:10 +0000 (15:59 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 14 Mar 2012 14:59:10 +0000 (15:59 +0100)
By providing methods that throw NotImplemented.

src/lib/datasrc/sqlite3_accessor.cc
src/lib/datasrc/sqlite3_accessor.h
src/lib/datasrc/tests/database_unittest.cc

index a0afb7f1450f8bff0c0e610057f354502308cc4f..23613ab0abe5a41a0f7de300527ba0c6891873f3 100644 (file)
@@ -587,6 +587,12 @@ SQLite3Accessor::getRecords(const std::string& name, int id,
                                            subdomains)));
 }
 
+DatabaseAccessor::IteratorContextPtr
+SQLite3Accessor::getNSEC3Records(const std::string&, int) const {
+    // TODO: Implement
+    isc_throw(NotImplemented, "Not implemented yet, see ticket #1760");
+}
+
 DatabaseAccessor::IteratorContextPtr
 SQLite3Accessor::getAllRecords(int id) const {
     return (IteratorContextPtr(new Context(shared_from_this(), id)));
index 08be8242350b45a94aace6ba53da2222fbda0134..38d13d8d4c173b54f653c785e30082721ce00f4d 100644 (file)
@@ -141,6 +141,14 @@ public:
                                           int id,
                                           bool subdomains = false) const;
 
+    /// \brief Look up NSEC3 records for the given hash
+    ///
+    /// This implements the getNSEC3Records of DatabaseAccessor.
+    ///
+    /// \todo Actually implement, currently throws NotImplemented.
+    virtual IteratorContextPtr getNSEC3Records(const std::string& hash,
+                                               int id) const;
+
     /** \brief Look up all resource records for a zone
      *
      * This implements the getRecords() method from DatabaseAccessor
index 758095b6af9dddf5e9eb6a3d16d9988a14a7cf7b..b4306e4977c2ee885689054cb893c732ce56e251 100644 (file)
@@ -251,11 +251,16 @@ public:
 
     virtual IteratorContextPtr getRecords(const std::string&, int, bool)
         const
-        {
+    {
         isc_throw(isc::NotImplemented,
                   "This database datasource can't be iterated");
     }
 
+    virtual IteratorContextPtr getNSEC3Records(const std::string&, int) const {
+        isc_throw(isc::NotImplemented, "This test database datasource won't "
+                  "give you any NSEC3. Ever. Ask someone else.");
+    }
+
     virtual IteratorContextPtr getAllRecords(int) const {
         isc_throw(isc::NotImplemented,
                   "This database datasource can't be iterated");