]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[optimize_query] fixed review comments
authorSunil Kallukudige Sreedhar Mayya <masunil@mpi-sws.org>
Fri, 10 Aug 2018 20:00:44 +0000 (22:00 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 13 Aug 2018 18:18:04 +0000 (20:18 +0200)
AUTHORS
ChangeLog
src/lib/dhcpsrv/cql_lease_mgr.cc
src/lib/dhcpsrv/lease_mgr.h
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc

diff --git a/AUTHORS b/AUTHORS
index 0a56cee9626f13a40ee449ddf545f85befaa49fb..252bebe03e57d2ba0acf5e1bedf1b75b2e50f1cd 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -172,7 +172,7 @@ We have received the following contributions:
  - Sunil Mayya
    2018-07: support for Authentication option in DHCPv6
    2018-07: support storage of Authentication keys in host structure
-   2018-07: Optimized query for host reservation from the backends
+   2018-08: Optimized query for host reservation from the backends
 
 Kea uses log4cplus (http://sourceforge.net/projects/log4cplus/) for logging,
 Boost (http://www.boost.org/) library for almost everything, and can use Botan
index 273bf4d33fed61f71a79913a3660270266dc0368..68cb70a7b2574b7906187feae2eeb91870470c84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
 1436.   [func]      MayyaSunil
-       Implemented new index for queries host reservations by DUID.
-       (Github #98, git c20b5248da1283e596e35ad057ae242f4d613965)
+       Implemented new queries for host reservations by DUID.
+       (Github #99, git c20b5248da1283e596e35ad057ae242f4d613965)
 
 1435.  [func]          marcin
        Implemented ha-continue command in HA hooks library and
index 6c04fd8adc4f7d582fadeb1a97ce4428b8e93ce1..5b41e6d852ca16c21eaccb2f3b7fef821bb079a6 100644 (file)
@@ -1023,7 +1023,7 @@ StatementMap CqlLease6Exchange::tagged_statements_ = {
       "SELECT "
       "address, valid_lifetime, expire, subnet_id, pref_lifetime, duid, iaid, "
       "lease_type, prefix_len, fqdn_fwd, fqdn_rev, hostname, hwaddr, hwtype, "
-      "hwaddr_source, state "
+      "hwaddr_source, state, user_context "
       "FROM lease6 "
       "WHERE duid = ? "
       "ALLOW FILTERING "}},
index e6b05b07c65d5aca43b86e9010c28102813475d4..e5759973fddf837395700619fbb421d5918a2093 100644 (file)
@@ -458,7 +458,7 @@ public:
     /// @return Lease collection (may be empty if no IPv6 lease found).
     virtual Lease6Collection getLeases6() const = 0;
 
-    /// @brief Returns collection of lease for matching DUID
+    /// @brief Returns collection of leases for matching DUID
     ///
     /// @return Lease collection 
     /// (may be empty if no IPv6 lease found for the DUID).
index f9619437533ee67d45abe7434dc40fd4d81cec78..dcb4bafef4ed3d814a54455f35ebe599cfd649a5 100644 (file)
@@ -1641,8 +1641,8 @@ GenericLeaseMgrTest::testGetLeases6Duid() {
                                80, subnet_id));
     Lease6Ptr lease2(new Lease6(Lease::TYPE_NA, addr2, duid2, iaid, 100, 200, 50,
                                80, subnet_id));
-    Lease6Ptr lease3(new Lease6(Lease::TYPE_NA, addr3, duid3, iaid, 100, 200, 50,
-                               80, subnet_id));
+    Lease6Ptr lease3(new Lease6(Lease::TYPE_PD, addr3, duid3, iaid, 100, 200, 50,
+                               80, subnet_id, HWAddrPtr(), 64));
 
     EXPECT_TRUE(lmptr_->addLease(lease1));
     EXPECT_TRUE(lmptr_->addLease(lease2));