summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/pgsql_lease_mgr.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2023-05-22 23:11:02 +0200
committerFrancis Dupont <fdupont@isc.org>2023-05-23 15:09:58 +0200
commitfa2b7d531828929f4ad8194bbf78bf713ad0e8fb (patch)
treef0b74a7bf595576edc8fe8d3c1d2d3519a5644de /src/lib/dhcpsrv/pgsql_lease_mgr.h
parent[#2757] Updated doc part (diff)
downloadkea-fa2b7d531828929f4ad8194bbf78bf713ad0e8fb.tar.xz
kea-fa2b7d531828929f4ad8194bbf78bf713ad0e8fb.zip
[#2757] Added function comments as required from review
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r--src/lib/dhcpsrv/pgsql_lease_mgr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h
index 794555abaa..e0534e22e0 100644
--- a/src/lib/dhcpsrv/pgsql_lease_mgr.h
+++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h
@@ -1077,6 +1077,13 @@ private:
/// @brief Upgrade extended info (v4).
///
+ /// For all leases with a not null user context.
+ /// - sanitize the user context
+ /// - update relay and remote ids
+ /// - when the lease was modified update it in the database
+ /// This function implements the new BLQ hook command named
+ /// "extended-info4-upgrade".
+ ///
/// @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;