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:
@@ -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);
|
||||
|
||||
|
@@ -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));
|
||||
}
|
||||
|
||||
|
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user