2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#2869] Improved reclaimed handling

This commit is contained in:
Francis Dupont
2023-05-26 13:42:56 +02:00
parent 76559da4f4
commit 5104c167b3
3 changed files with 0 additions and 15 deletions

View File

@@ -2099,17 +2099,6 @@ Memfile_LeaseMgr::deleteExpiredReclaimedLeases(const uint32_t secs,
}
}
// Delete references from extended info tables.
if (getExtendedInfoTablesEnabled()) {
// Swap if and for when v4 will be implemented.
if (universe == V6) {
for (typename IndexType::const_iterator lease = lower_limit;
lease != upper_limit; ++lease) {
deleteExtendedInfo6((*lease)->addr_);
}
}
}
// Erase leases from memory.
index.erase(lower_limit, upper_limit);

View File

@@ -2409,8 +2409,6 @@ MySqlLeaseMgr::addLease(const Lease6Ptr& lease) {
lease->updateCurrentExpirationTime();
if (getExtendedInfoTablesEnabled()) {
// Expired leases can be removed leaving entries in extended info tables.
deleteExtendedInfo6(lease->addr_);
static_cast<void>(addExtendedInfo6(lease));
}

View File

@@ -1857,8 +1857,6 @@ PgSqlLeaseMgr::addLease(const Lease6Ptr& lease) {
lease->updateCurrentExpirationTime();
if (getExtendedInfoTablesEnabled()) {
// Expired leases can be removed leaving entries in extended info tables.
deleteExtendedInfo6(lease->addr_);
static_cast<void>(addExtendedInfo6(lease));
}