diff options
author | Francis Dupont <fdupont@isc.org> | 2023-04-05 21:23:11 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2023-05-23 15:09:57 +0200 |
commit | acbfbe1498a374b17dccfd4ca40efbf0062f1bba (patch) | |
tree | 7d2d1f94e3205557466546f0c5c066079c9d72f2 /src/lib/dhcpsrv/pgsql_lease_mgr.h | |
parent | [#2873] null check to prevent crash in GenericLeaseMgrTest (diff) | |
download | kea-acbfbe1498a374b17dccfd4ca40efbf0062f1bba.tar.xz kea-acbfbe1498a374b17dccfd4ca40efbf0062f1bba.zip |
[#2757] Rebased from #275[23]
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r-- | src/lib/dhcpsrv/pgsql_lease_mgr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h index 9e4d7f126f..794555abaa 100644 --- a/src/lib/dhcpsrv/pgsql_lease_mgr.h +++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h @@ -678,6 +678,7 @@ public: GET_LEASE4_HWADDR, // Get lease4 by HW address GET_LEASE4_HWADDR_SUBID, // Get lease4 by HW address & subnet ID GET_LEASE4_PAGE, // Get page of leases beginning with an address + GET_LEASE4_UCTX_PAGE, // Get page of leases with user context GET_LEASE4_SUBID, // Get IPv4 leases by subnet ID GET_LEASE4_HOSTNAME, // Get IPv4 leases by hostname GET_LEASE4_EXPIRE, // Get lease4 by expiration. @@ -694,6 +695,7 @@ public: GET_LEASE6_DUID_IAID, // Get lease6 by DUID and IAID GET_LEASE6_DUID_IAID_SUBID, // Get lease6 by DUID, IAID and subnet ID GET_LEASE6_PAGE, // Get page of leases beginning with an address + GET_LEASE6_UCTX_PAGE, // Get page of leases with user context GET_LEASE6_SUBID, // Get IPv6 leases by subnet ID GET_LEASE6_DUID, // Get IPv6 leases by DUID GET_LEASE6_HOSTNAME, // Get IPv6 leases by hostname @@ -1073,6 +1075,12 @@ private: const asiolink::IOAddress& lower_bound_address, const LeasePageSize& page_size) override; + /// @brief Upgrade extended info (v4). + /// + /// @param page_size The page size used for retrieval. + /// @return The number of updates in the database. + virtual size_t upgradeExtendedInfo(const LeasePageSize& page_size) override; + /// @brief Build extended info v6 tables. /// /// @param update Update extended info in database. |