diff options
author | Andrei Pavel <andrei@isc.org> | 2022-06-27 10:08:33 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2022-06-29 14:51:27 +0200 |
commit | f5419843a10abd76fc1ba853e20f71d359b08a30 (patch) | |
tree | 8b8af02a96faca11522d69c7e79478ac1ad36a3a /src/lib/dhcpsrv/pgsql_lease_mgr.h | |
parent | [#2445] tests for PostgreSQL lease counting (diff) | |
download | kea-f5419843a10abd76fc1ba853e20f71d359b08a30.tar.xz kea-f5419843a10abd76fc1ba853e20f71d359b08a30.zip |
[#2445] implement PostgreSQL lease manager methods for limit checking
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r-- | src/lib/dhcpsrv/pgsql_lease_mgr.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h index 66522fa678..81d831cc84 100644 --- a/src/lib/dhcpsrv/pgsql_lease_mgr.h +++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h @@ -613,12 +613,6 @@ public: /// @return number of leases removed. virtual size_t wipeLeases6(const SubnetID& subnet_id) override; - /// @brief Checks if JSON support is enabled in the database. - /// PostgreSQL implementation. - /// - /// @return true if there is JSON support, false otherwise - virtual bool isJsonSupported() const override; - /// @brief Return backend type /// /// Returns the type of the backend (e.g. "mysql", "memfile" etc.) @@ -707,6 +701,7 @@ public: SUBNET_RANGE_LEASE6_STATS, // Fetched IPv6 lease stats for a subnet range. CHECK_LEASE4_LIMITS, // Check if allocated IPv4 leases are inside the set limits. CHECK_LEASE6_LIMITS, // Check if allocated IPv6 leases are inside the set limits. + IS_JSON_SUPPORTED, // Checks if JSON support is enabled in the database. NUM_STATEMENTS // Number of statements }; @@ -949,6 +944,12 @@ private: virtual std::string checkLimits6(isc::data::ConstElementPtr const& user_context) const override; + /// @brief Checks if JSON support is enabled in the database. + /// PostgreSQL implementation. + /// + /// @return true if there is JSON support, false otherwise + bool isJsonSupported() const override; + /// @brief Context RAII Allocator. class PgSqlLeaseContextAlloc { public: |