} else if (existing_lease->cltt_ < lease->cltt_) {
// If the existing lease is older than the fetched lease, update
// the lease in our local database.
+ lease->old_cltt_ = existing_lease->old_cltt_;
+ lease->old_valid_lft_ = existing_lease->old_valid_lft_;
LeaseMgrFactory::instance().updateLease4(lease);
} else {
} else if (existing_lease->cltt_ < lease->cltt_) {
// If the existing lease is older than the fetched lease, update
// the lease in our local database.
+ lease->old_cltt_ = existing_lease->old_cltt_;
+ lease->old_valid_lft_ = existing_lease->old_valid_lft_;
LeaseMgrFactory::instance().updateLease6(lease);
} else {
LeaseCmdsImpl::updateStatsOnAdd(lease);
return (true);
}
+ lease->old_cltt_ = existing->old_cltt_;
+ lease->old_valid_lft_ = existing->old_valid_lft_;
LeaseMgrFactory::instance().updateLease4(lease);
LeaseCmdsImpl::updateStatsOnUpdate(existing, lease);
return (false);
LeaseCmdsImpl::updateStatsOnAdd(lease);
return (true);
}
+ lease->old_cltt_ = existing->old_cltt_;
+ lease->old_valid_lft_ = existing->old_valid_lft_;
LeaseMgrFactory::instance().updateLease6(lease);
LeaseCmdsImpl::updateStatsOnUpdate(existing, lease);
return (false);