Commit 5fbfc011 authored by Sunil Kallukudige Sreedhar Mayya's avatar Sunil Kallukudige Sreedhar Mayya Committed by Tomek Mrugalski
Browse files

[optimize_query] fixed review comments

parent a121466e
......@@ -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
......
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
......
......@@ -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 "}},
......
......@@ -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).
......
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment