diff options
author | Andrei Pavel <andrei@isc.org> | 2022-07-06 14:56:23 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2022-07-07 13:48:20 +0200 |
commit | 7cfaee946fc9a29015be3a474b0af6ade3a90640 (patch) | |
tree | 94d887ef5cbde996f6d1f934210703c324bdddb4 /src/lib/dhcpsrv/pgsql_lease_mgr.h | |
parent | [#2448] solve unused parameter warning (diff) | |
download | kea-7cfaee946fc9a29015be3a474b0af6ade3a90640.tar.xz kea-7cfaee946fc9a29015be3a474b0af6ade3a90640.zip |
[#2448] add virtual in LeaseMgr methods
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r-- | src/lib/dhcpsrv/pgsql_lease_mgr.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h index 50709f0ebc..7ef28e65fa 100644 --- a/src/lib/dhcpsrv/pgsql_lease_mgr.h +++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h @@ -950,7 +950,7 @@ private: /// PostgreSQL implementation. /// /// @return true if there is JSON support, false otherwise - bool isJsonSupported() const override; + virtual bool isJsonSupported() const override; /// @brief Returns the class lease count for a given class and lease type. /// @@ -959,17 +959,17 @@ private: /// Lease::TYPE_V4. /// /// @return number of leases - size_t getClassLeaseCount(const ClientClass& client_class, - const Lease::Type& ltype = Lease::TYPE_V4) const override; + 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; + virtual void recountClassLeases4() override; /// @brief Recount the leases per class for V6 leases. - void recountClassLeases6() override; + virtual void recountClassLeases6() override; /// @brief Clears the class-lease count map. - void clearClassLeaseCounts() override; + virtual void clearClassLeaseCounts() override; /// @brief Context RAII Allocator. class PgSqlLeaseContextAlloc { |