summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/pgsql_lease_mgr.h
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2022-07-04 20:34:01 +0200
committerAndrei Pavel <andrei@isc.org>2022-07-07 13:48:20 +0200
commit94e0e8d601b6c13357f0888d5b9703e10646bf58 (patch)
tree1cf0619844cbc43ab7100fb8496787196e3a56d9 /src/lib/dhcpsrv/pgsql_lease_mgr.h
parent[#2448] add MultiThreadingLock (diff)
downloadkea-94e0e8d601b6c13357f0888d5b9703e10646bf58.tar.xz
kea-94e0e8d601b6c13357f0888d5b9703e10646bf58.zip
[#2448] make class counter methods virtual in LeaseMgr
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r--src/lib/dhcpsrv/pgsql_lease_mgr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h
index 5329baa732..fc22207e64 100644
--- a/src/lib/dhcpsrv/pgsql_lease_mgr.h
+++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h
@@ -962,6 +962,15 @@ private:
virtual size_t getClassLeaseCount(const ClientClass& client_class,
const Lease::Type& ltype = Lease::TYPE_V4) const override;
+ /// @brief Recount the leases per class for V4 leases.
+ void recountClassLeases4() override;
+
+ /// @brief Recount the leases per class for V6 leases.
+ void recountClassLeases6() override;
+
+ /// @brief Clears the class-lease count map.
+ void clearClassLeaseCounts() override;
+
/// @brief Context RAII Allocator.
class PgSqlLeaseContextAlloc {
public: