argument contains the pointer to the lease being reclaimed. The second
argument "remove_lease" indicates if the reclaimed leases should be
removed from the lease database (if true), or their state should be
- set to "expired-reclaimed" in the lease database. This parameter
+ set to "expired-reclaimed" in the lease database. This argument
is only used by the callout if it takes responsibility for the lease
- reclamation, i.e. it sets the "skip" flag to "true".
+ reclamation, i.e. it sets the "skip" flag to "true". The "remove_lease"
+ argument is set to "true" if the "recycle-timer-wait-time" is set
+ to 0 in the server configuration file.
- <b>Skip flag action</b>: if the callout sets the skip flag, the server
will assume that the callout has fully reclaimed the lease, i.e.
argument contains the pointer to the lease being reclaimed. The second
argument "remove_lease" indicates if the reclaimed leases should be
removed from the lease database (if true), or their state should be
- set to "expired-reclaimed" in the lease database. This parameter
+ set to "expired-reclaimed" in the lease database. This argument
is only used by the callout if it takes responsibility for the lease
- reclamation, i.e. it sets the "skip" flag to "true".
+ reclamation, i.e. it sets the "skip" flag to "true". The "remove_lease"
+ argument is set to "true" if the "recycle-timer-wait-time" is set
+ to 0 in the server configuration file.
- <b>Skip flag action</b>: if the callout sets the skip flag, the server
will assume that the callout has fully reclaimed the lease, i.e.
lease_mgr.getExpiredLeases4(leases, max_leases);
// Do not initialize the callout handle until we know if there are any
- // lease6_expire callouts installed.
+ // lease4_expire callouts installed.
CalloutHandlePtr callout_handle;
if (!leases.empty() &&
HooksManager::getHooksManager().calloutsPresent(Hooks.hook_index_lease4_expire_)) {
// This test verifies that it is possible to set the timeout for the
// execution of the lease reclamation routine.
TEST_F(ExpirationAllocEngine6Test, reclaimExpiredLeasesTimeout) {
- // For this test to make sense we need significantly more than 30
- // leases so it is ok if we have 40.
+ // This test needs at least 40 leases to make sense.
BOOST_STATIC_ASSERT(TEST_LEASES_NUM >= 40);
// Run with timeout of 60ms.
testReclaimExpiredLeasesTimeout(60);
// This test verifies that it is possible to set the timeout for the
// execution of the lease reclamation routine.
TEST_F(ExpirationAllocEngine4Test, reclaimExpiredLeasesTimeout) {
- // For this test to make sense we need significantly more than 30
- // leases so it is ok if we have 40.
+ // This test needs at least 40 leases to make sense.
BOOST_STATIC_ASSERT(TEST_LEASES_NUM >= 40);
// Run with timeout of 60ms.
testReclaimExpiredLeasesTimeout(60);