]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2869] After rebase fixes
authorFrancis Dupont <fdupont@isc.org>
Tue, 4 Jul 2023 18:36:47 +0000 (20:36 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 6 Jul 2023 20:12:40 +0000 (22:12 +0200)
17 files changed:
src/bin/dhcp6/ctrl_dhcp6_srv.cc
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
src/lib/dhcpsrv/dhcpsrv_messages.cc
src/lib/dhcpsrv/dhcpsrv_messages.h
src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/lease_mgr.h
src/lib/dhcpsrv/memfile_lease_mgr.cc
src/lib/dhcpsrv/memfile_lease_mgr.h
src/lib/dhcpsrv/mysql_lease_mgr.cc
src/lib/dhcpsrv/mysql_lease_mgr.h
src/lib/dhcpsrv/pgsql_lease_mgr.cc
src/lib/dhcpsrv/pgsql_lease_mgr.h
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
src/lib/dhcpsrv/testutils/concrete_lease_mgr.cc
src/lib/dhcpsrv/testutils/concrete_lease_mgr.h
src/share/api/extended-info6-upgrade.json

index 8202bd5698dffb957fb4509ddad705b46c98ed7c..433ae2e3bcc1fa977012ad06356603b2bde6c320 100644 (file)
@@ -774,10 +774,6 @@ ControlledDhcpv6Srv::commandStatusGetHandler(const string&,
 
     status->set("extended-info-tables",
                 Element::create(LeaseMgrFactory::instance().getExtendedInfoTablesEnabled()));
-    status->set("by-relay-id-table-size",
-                Element::create(static_cast<long long>(LeaseMgrFactory::instance().byRelayId6size())));
-    status->set("by-remote-id-table-size",
-                Element::create(static_cast<long long>(LeaseMgrFactory::instance().byRemoteId6size())));
 
     // Iterate through the interfaces and get all the errors.
     ElementPtr socket_errors(Element::createList());
index 1a6d83b1fe979a5d4c466bec68f86e138b5390b3..fa6d6e549b14ad56241880bb632e52e487a4ddbc 100644 (file)
@@ -1098,14 +1098,6 @@ TEST_F(CtrlChannelDhcpv6SrvTest, statusGet) {
     ASSERT_TRUE(found_extended_info_tables);
     EXPECT_FALSE(found_extended_info_tables->boolValue());
 
-    auto found_by_relay_id_table_size = arguments->get("by-relay-id-table-size");
-    ASSERT_TRUE(found_by_relay_id_table_size);
-    EXPECT_LE(0, found_by_relay_id_table_size->intValue());
-
-    auto found_by_remote_id_table_size = arguments->get("by-remote-id-table-size");
-    ASSERT_TRUE(found_by_remote_id_table_size);
-    EXPECT_LE(0, found_by_remote_id_table_size->intValue());
-
     MultiThreadingMgr::instance().setMode(true);
     MultiThreadingMgr::instance().setThreadPoolSize(4);
     MultiThreadingMgr::instance().setPacketQueueSize(64);
index f6ba0240e34bba1b46ec4dee2c1137c63a008a16..0ac3856f8f43840f684e7da08ee2bdf352f6d00d 100644 (file)
@@ -196,9 +196,6 @@ extern const isc::log::MessageID DHCPSRV_MYSQL_START_TRANSACTION = "DHCPSRV_MYSQ
 extern const isc::log::MessageID DHCPSRV_MYSQL_TLS_CIPHER = "DHCPSRV_MYSQL_TLS_CIPHER";
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPDATE_ADDR4 = "DHCPSRV_MYSQL_UPDATE_ADDR4";
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPDATE_ADDR6 = "DHCPSRV_MYSQL_UPDATE_ADDR6";
-extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6 = "DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6";
-extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_ERROR = "DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_ERROR";
-extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_PAGE = "DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_PAGE";
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4 = "DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4";
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4_ERROR = "DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4_ERROR";
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4_PAGE = "DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4_PAGE";
@@ -259,9 +256,6 @@ extern const isc::log::MessageID DHCPSRV_PGSQL_START_TRANSACTION = "DHCPSRV_PGSQ
 extern const isc::log::MessageID DHCPSRV_PGSQL_TLS_SUPPORT = "DHCPSRV_PGSQL_TLS_SUPPORT";
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPDATE_ADDR4 = "DHCPSRV_PGSQL_UPDATE_ADDR4";
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPDATE_ADDR6 = "DHCPSRV_PGSQL_UPDATE_ADDR6";
-extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6 = "DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6";
-extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_ERROR = "DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_ERROR";
-extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_PAGE = "DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_PAGE";
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4 = "DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4";
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4_ERROR = "DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4_ERROR";
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4_PAGE = "DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4_PAGE";
@@ -486,9 +480,6 @@ const char* values[] = {
     "DHCPSRV_MYSQL_TLS_CIPHER", "TLS cipher: %1",
     "DHCPSRV_MYSQL_UPDATE_ADDR4", "updating IPv4 lease for address %1",
     "DHCPSRV_MYSQL_UPDATE_ADDR6", "updating IPv6 lease for address %1, lease type %2",
-    "DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6", "upgrading IPv6 leases done in %1 pages with %2 updated leases",
-    "DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_ERROR", "upgrading binary address for IPv6 lease at %1 failed with %2",
-    "DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_PAGE", "upgrading IPv6 lease binary addresses at page %1 starting at %2 (updated %3)",
     "DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4", "upgrading IPv4 leases done in %1 pages with %2 updated leases",
     "DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4_ERROR", "upgrading extending info for IPv4 lease at %1 failed with %2",
     "DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4_PAGE", "upgrading IPv4 lease extended info at page %1 starting at %2 (updated %3)",
@@ -549,9 +540,6 @@ const char* values[] = {
     "DHCPSRV_PGSQL_TLS_SUPPORT", "Attempt to configure TLS: %1",
     "DHCPSRV_PGSQL_UPDATE_ADDR4", "updating IPv4 lease for address %1",
     "DHCPSRV_PGSQL_UPDATE_ADDR6", "updating IPv6 lease for address %1, lease type %2",
-    "DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6", "upgrading IPv6 leases done in %1 pages with %2 updated leases",
-    "DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_ERROR", "upgrading binary address for IPv6 lease at %1 failed with %2",
-    "DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_PAGE", "upgrading IPv6 lease binary addresses at page %1 starting at %2 (updated %3)",
     "DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4", "upgrading IPv4 leases done in %1 pages with %2 updated leases",
     "DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4_ERROR", "upgrading extending info for IPv4 lease at %1 failed with %2",
     "DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4_PAGE", "upgrading IPv4 lease extended info at page %1 starting at %2 (updated %3)",
index ba6c371352ad10ebc3582e74fa1ecff6cde6e18c..e16ee898f8eee93808938147384756bb0c855540 100644 (file)
@@ -197,9 +197,6 @@ extern const isc::log::MessageID DHCPSRV_MYSQL_START_TRANSACTION;
 extern const isc::log::MessageID DHCPSRV_MYSQL_TLS_CIPHER;
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPDATE_ADDR4;
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPDATE_ADDR6;
-extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6;
-extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_ERROR;
-extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_PAGE;
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4;
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4_ERROR;
 extern const isc::log::MessageID DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4_PAGE;
@@ -260,9 +257,6 @@ extern const isc::log::MessageID DHCPSRV_PGSQL_START_TRANSACTION;
 extern const isc::log::MessageID DHCPSRV_PGSQL_TLS_SUPPORT;
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPDATE_ADDR4;
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPDATE_ADDR6;
-extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6;
-extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_ERROR;
-extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_PAGE;
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4;
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4_ERROR;
 extern const isc::log::MessageID DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4_PAGE;
index 097a3c38235798204e67c648569f72674571350f..03d5014e714a863c28c5e458d997490f2ae66efe 100644 (file)
@@ -995,19 +995,6 @@ lease from the MySQL database for the specified address.
 A debug message issued when the server is attempting to update IPv6
 lease from the MySQL database for the specified address.
 
-% DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6 upgrading IPv6 leases done in %1 pages with %2 updated leases
-The server upgraded binary addresses. The number of pages and the
-final count of updated leases are displayed.
-
-% DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_ERROR upgrading binary address for IPv6 lease at %1 failed with %2
-An error message issued when the server failed to upgrade a binary address.
-The address of the lease and the error message are displayed.
-
-% DHCPSRV_MYSQL_UPGRADE_BINARY_ADDRESS6_PAGE upgrading IPv6 lease binary addresses at page %1 starting at %2 (updated %3)
-A debug message issued when the server upgrades IPv6 lease binary addresses.
-The page number and started address, and the count of already updated leases
-are displayed.
-
 % DHCPSRV_MYSQL_UPGRADE_EXTENDED_INFO4 upgrading IPv4 leases done in %1 pages with %2 updated leases
 The server upgraded extended info. The number of pages and the final count of
 updated leases are displayed.
@@ -1291,19 +1278,6 @@ lease from the PostgreSQL database for the specified address.
 A debug message issued when the server is attempting to update IPv6
 lease from the PostgreSQL database for the specified address.
 
-% DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6 upgrading IPv6 leases done in %1 pages with %2 updated leases
-The server upgraded binary addresses. The number of pages and the
-final count of updated leases are displayed.
-
-% DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_ERROR upgrading binary address for IPv6 lease at %1 failed with %2
-An error message issued when the server failed to upgrade a binary address.
-The address of the lease and the error message are displayed.
-
-% DHCPSRV_PGSQL_UPGRADE_BINARY_ADDRESS6_PAGE upgrading IPv6 lease binary addresses at page %1 starting at %2 (updated %3)
-A debug message issued when the server upgrades IPv6 lease binary addresses.
-The page number and started address, and the count of already updated leases
-are displayed.
-
 % DHCPSRV_PGSQL_UPGRADE_EXTENDED_INFO4 upgrading IPv4 leases done in %1 pages with %2 updated leases
 The server upgraded extended info. The number of pages and the final count of
 updated leases are displayed.
index 850e6eb68966aecd05d3710a6dac73e8f0b241ae..8ef18484dfdf5053cb25af77204553b5beb2fcf4 100644 (file)
@@ -1040,14 +1040,6 @@ public:
         extended_info_tables_enabled_ = enabled;
     }
 
-    /// @brief Build extended info v6 tables.
-    ///
-    /// @param update Update extended info in database.
-    /// @param current specify whether to use current (true) or staging
-    /// (false) config.
-    /// @return The number of updates in the database or 0.
-    virtual size_t buildExtendedInfoTables6(bool update, bool current) = 0;
-
     /// @brief Upgrade extended info (v6).
     ///
     /// On SQL backends for all leases with a not null user context.
index 1a10db1e10e7a423e02a23d552c38c8779921a43..0c99e2a4bc4ddc31d6331a39e76cf9290516b16b 100644 (file)
@@ -3457,16 +3457,6 @@ Memfile_LeaseMgr::buildExtendedInfoTables6() {
         .arg(processed);
 }
 
-size_t
-Memfile_LeaseMgr::buildExtendedInfoTables6(bool update, bool current) {
-    if (MultiThreadingMgr::instance().getMode()) {
-        std::lock_guard<std::mutex> lock(*mutex_);
-        return (buildExtendedInfoTables6Internal(update, current));
-    } else {
-        return (buildExtendedInfoTables6Internal(update, current));
-    }
-}
-
 size_t
 Memfile_LeaseMgr::upgradeExtendedInfo6(const LeasePageSize& /* page_size */) {
     return (0);
index 536cb77ccf69103a53114daf04373931ea6896f4..22f4cb70e5869e9052deee6c267c2cc1868640a8 100644 (file)
@@ -1416,14 +1416,6 @@ public:
     /// @return The number of updates in the database or 0.
     size_t extractExtendedInfo4(bool update, bool current);
 
-    /// @brief Build extended info v6 tables.
-    ///
-    /// @param update Update extended info in database.
-    /// @param current specify whether to use current (true) or staging
-    /// (false) config.
-    /// @return The number of updates in the database or 0.
-    virtual size_t buildExtendedInfoTables6(bool update, bool current) override;
-
     /// @brief Upgrade extended info (v6).
     ///
     /// @param page_size The page size used for retrieval.
index 7e33a31956bf101dff6222add99755a744830a6e..c2e23e4d7d4315ef84d74768e844561dc9b57937 100644 (file)
@@ -4540,12 +4540,15 @@ MySqlLeaseMgr::getLeases6ByRelayId(const DUID& relay_id,
         memset(inbind, 0, sizeof(inbind));
 
         // Bind the lease address.
-        std::string addr_data = addr.toText();
-        unsigned long addr_size = addr_data.size();
-        inbind[0].buffer_type = MYSQL_TYPE_STRING;
-        inbind[0].buffer = const_cast<char*>(addr_data.c_str());
-        inbind[0].buffer_length = addr_size;
-        inbind[0].length = &addr_size;
+        std::vector<uint8_t>addr_bytes = addr.toBytes();
+        unsigned long addr_length = addr_bytes.size();
+        if (addr_length != 16) {
+            isc_throw(DbOperationError, "lease6 address is not 16 bytes long");
+        }
+        inbind[0].buffer_type = MYSQL_TYPE_BLOB;
+        inbind[0].buffer = reinterpret_cast<char*>(&addr_bytes[0]);
+        inbind[0].buffer_length = addr_length;
+        inbind[0].length = &addr_length;
 
         // Get the lease.
         Lease6Ptr lease;
@@ -4706,12 +4709,15 @@ MySqlLeaseMgr::getLeases6ByRemoteId(const OptionBuffer& remote_id,
         memset(inbind, 0, sizeof(inbind));
 
         // Bind the lease address.
-        std::string addr_data = addr.toText();
-        unsigned long addr_size = addr_data.size();
-        inbind[0].buffer_type = MYSQL_TYPE_STRING;
-        inbind[0].buffer = const_cast<char*>(addr_data.c_str());
-        inbind[0].buffer_length = addr_size;
-        inbind[0].length = &addr_size;
+        std::vector<uint8_t>addr_bytes = addr.toBytes();
+        unsigned long addr_length = addr_bytes.size();
+        if (addr_length != 16) {
+            isc_throw(DbOperationError, "lease6 address is not 16 bytes long");
+        }
+        inbind[0].buffer_type = MYSQL_TYPE_BLOB;
+        inbind[0].buffer = reinterpret_cast<char*>(&addr_bytes[0]);
+        inbind[0].buffer_length = addr_length;
+        inbind[0].length = &addr_length;
 
         // Get the lease.
         Lease6Ptr lease;
@@ -4808,12 +4814,6 @@ MySqlLeaseMgr::getLeases6ByLink(const IOAddress& link_addr,
     return (result);
 }
 
-size_t
-MySqlLeaseMgr::buildExtendedInfoTables6(bool /* update */, bool /* current */) {
-    isc_throw(isc::NotImplemented,
-              "MySqlLeaseMgr::buildExtendedInfoTables6 not implemented");
-}
-
 size_t
 MySqlLeaseMgr::upgradeExtendedInfo6(const LeasePageSize& page_size) {
     auto check = CfgMgr::instance().getCurrentCfg()->
@@ -4839,14 +4839,15 @@ MySqlLeaseMgr::upgradeExtendedInfo6(const LeasePageSize& page_size) {
         memset(inbind, 0, sizeof(inbind));
 
         // Bind start address.
-        std::string start_addr_str = "";
-        if (!start_addr.isV6Zero()) {
-            start_addr_str = start_addr.toText();
+        std::vector<uint8_t>start_addr_bytes = start_addr.toBytes();
+        if (start_addr_bytes.size() != 16) {
+            isc_throw(DbOperationError, "start address is not 16 bytes long");
         }
-        unsigned long start_addr_size = start_addr_str.size();
-        inbind[0].buffer_type = MYSQL_TYPE_STRING;
-        inbind[0].buffer = const_cast<char*>(start_addr_str.c_str());
-        inbind[0].buffer_length = start_addr_size;
+
+        unsigned long start_addr_size = 16;
+        inbind[0].buffer_type = MYSQL_TYPE_BLOB;
+        inbind[0].buffer = reinterpret_cast<char*>(&start_addr_bytes[0]);
+        inbind[0].buffer_length = 16;
         inbind[0].length = &start_addr_size;
 
         // Bind page size value.
index 0a893947bf18154dc38d647a1a865abff0ac2ffe..6be29b86502670fcc8b9f6b5f1cca0c1da8aa994 100644 (file)
@@ -1177,14 +1177,6 @@ public:
     /// @return The number of updates in the database.
     virtual size_t upgradeExtendedInfo4(const LeasePageSize& page_size) override;
 
-    /// @brief Build extended info v6 tables.
-    ///
-    /// @param update Update extended info in database.
-    /// @param current specify whether to use current (true) or staging
-    /// (false) config.
-    /// @return The number of updates in the database or 0.
-    virtual size_t buildExtendedInfoTables6(bool update, bool current) override;
-
     /// @brief Upgrade extended info (v6).
     ///
     /// All leases with a not null user context.
index 39fe2fd34b2361fbf117b56e5dc28e3557e649a7..02ed0c2bf7287b6c8e7c0138aa78d8eb483f3448 100644 (file)
@@ -321,7 +321,7 @@ PgSqlTaggedStatement tagged_statements[] = {
         "hwaddr, hwtype, hwaddr_source, "
         "state, user_context, pool_id "
       "FROM lease6 "
-      "WHERE address = $1" },
+      "WHERE address = cast($1 as inet)" },
 
     // GET_LEASE6_DUID_IAID
     { 3, { OID_BYTEA, OID_INT8, OID_INT2 },
@@ -3810,12 +3810,6 @@ PgSqlLeaseMgr::getLeases6ByLink(const IOAddress& link_addr,
     return (result);
 }
 
-size_t
-PgSqlLeaseMgr::buildExtendedInfoTables6(bool /* update */, bool /* current */) {
-    isc_throw(isc::NotImplemented,
-              "PgSqlLeaseMgr::buildExtendedInfoTables6 not implemented");
-}
-
 size_t
 PgSqlLeaseMgr::upgradeExtendedInfo6(const LeasePageSize& page_size) {
     auto check = CfgMgr::instance().getCurrentCfg()->
@@ -3840,10 +3834,7 @@ PgSqlLeaseMgr::upgradeExtendedInfo6(const LeasePageSize& page_size) {
         PsqlBindArray bind_array;
 
         // Bind start address.
-        std::string start_addr_str = "0";
-        if (!start_addr.isV6Zero()) {
-            start_addr_str = start_addr.toText();
-        }
+        std::string start_addr_str = start_addr.toText();
         bind_array.add(start_addr_str);
 
         // Bind page size value.
index 28cd892c96ba3c28743dc827f5a85fc6823191db..2308affaf0552988dd68cc57f17770ece38dc85e 100644 (file)
@@ -1131,14 +1131,6 @@ public:
     /// @return The number of updates in the database.
     virtual size_t upgradeExtendedInfo4(const LeasePageSize& page_size) override;
 
-    /// @brief Build extended info v6 tables.
-    ///
-    /// @param update Update extended info in database.
-    /// @param current specify whether to use current (true) or staging
-    /// (false) config.
-    /// @return The number of updates in the database or 0.
-    virtual size_t buildExtendedInfoTables6(bool update, bool current) override;
-
     /// @brief Upgrade extended info (v6).
     ///
     /// All leases with a not null user context.
index eebe5a9b793bafd8d41e98a61a81c579fb2c8a84..b752bc3c57732143a49a59815a984b711c7d0f8e 100644 (file)
@@ -203,9 +203,9 @@ TEST(MySqlOpenTest, OpenDatabase) {
 
     // Check for extended info tables.
     const char* EX_INFO = "extended-info-tables=true";
-    EXPECT_THROW(LeaseMgrFactory::create(connectionString(
-        MYSQL_VALID_TYPE, VALID_NAME, VALID_HOST, VALID_USER, VALID_PASSWORD, EX_INFO)),
-        NotImplemented);
+    EXPECT_NO_THROW(LeaseMgrFactory::create(connectionString(
+        MYSQL_VALID_TYPE, VALID_NAME, VALID_HOST, VALID_USER, VALID_PASSWORD, EX_INFO)));
+    LeaseMgrFactory::destroy();
 
     // Tidy up after the test
     destroyMySQLSchema(true);
index 0045cefd74a2005176e9aa33ac8b9b0fe64e89fd..e9506a729b297b3d630d669a4af9d48d9befa87f 100644 (file)
@@ -211,9 +211,9 @@ TEST(PgSqlOpenTest, OpenDatabase) {
 
     // Check for extended info tables.
     const char* EX_INFO = "extended-info-tables=true";
-    EXPECT_THROW(LeaseMgrFactory::create(connectionString(
-        PGSQL_VALID_TYPE, VALID_NAME, VALID_HOST, VALID_USER, VALID_PASSWORD, EX_INFO)),
-        NotImplemented);
+    EXPECT_NO_THROW(LeaseMgrFactory::create(connectionString(
+        PGSQL_VALID_TYPE, VALID_NAME, VALID_HOST, VALID_USER, VALID_PASSWORD, EX_INFO)));
+    LeaseMgrFactory::destroy();
 
     // Tidy up after the test
     destroyPgSQLSchema();
index e8869438eb11a5bd283b1f842a391a85d7df0e56..5e0ce8222e2f6a9481e5f132bea4c3247a793080 100644 (file)
@@ -296,12 +296,6 @@ ConcreteLeaseMgr::upgradeExtendedInfo4(const LeasePageSize& /* page_size */) {
     return (0);
 }
 
-size_t
-ConcreteLeaseMgr::buildExtendedInfoTables6(bool /* update */,
-                                           bool /* current */) {
-    isc_throw(isc::NotImplemented, "ConcreteLeaseMgr:buildExtendedInfoTables6 not implemented");
-}
-
 size_t
 ConcreteLeaseMgr::upgradeExtendedInfo6(const LeasePageSize& /* page_size */) {
     return (0);
index 65db53263544d9114f2588d612f8f19cf8851dad..1b48337e2d59eebcd919b9633c4bf0c28d13f1b8 100644 (file)
@@ -381,10 +381,6 @@ public:
     virtual size_t
     upgradeExtendedInfo4(const LeasePageSize& /* page_size */) override;
 
-    /// @brief Stub implementation.
-    virtual size_t buildExtendedInfoTables6(bool /* update */,
-                                            bool /* current */) override;
-
     /// @brief Stub implementation.
     virtual size_t
     upgradeExtendedInfo6(const LeasePageSize& /* page_size */) override;
index 907b1bfb9d934dd72e60c4799ca5d8aac07fa042..7db7c42334f166d9f690323b9c896fb196e65fe6 100644 (file)
@@ -1,6 +1,6 @@
 {
     "access": "write",
-    "avail": "2.3.9",
+    "avail": "2.5.0",
     "brief": [
         "This command sanitizes extended info of all IPv6 leases and rebuilds when they are enabled relay and remote ID tables in the SQL lease database."
     ],