// Remove this lease from LeaseMgr as it is reserved to someone
// else or doesn't belong to a pool.
if (!LeaseMgrFactory::instance().deleteLease(candidate)) {
+ // Concurrent delete performed by other instance which should
+ // properly handle dns and stats updates.
continue;
}
// Remove this lease from LeaseMgr as it doesn't belong to a pool.
if (!LeaseMgrFactory::instance().deleteLease(candidate)) {
+ // Concurrent delete performed by other instance which should
+ // properly handle dns and stats updates.
continue;
}
// We have reservations, but not for this lease. Release it.
// Remove this lease from LeaseMgr
if (!LeaseMgrFactory::instance().deleteLease(*lease)) {
+ // Concurrent delete performed by other instance which should
+ // properly handle dns and stats updates.
continue;
}
// Remove this lease from LeaseMgr
if (!LeaseMgrFactory::instance().deleteLease(lease)) {
+ // Concurrent delete performed by other instance which should
+ // properly handle dns and stats updates.
return;
}