}
storage4_.insert(lease);
+
+ // Update lease internal information with new values (allows update of the
+ // internal state between the creation of the Lease up to the point of
+ // insertion in the database).
+ lease->updateInternalTimestamp();
return (true);
}
}
storage6_.insert(lease);
+
+ // Update lease internal information with new values (allows update of the
+ // internal state between the creation of the Lease up to the point of
+ // insertion in the database).
+ lease->updateInternalTimestamp();
return (true);
}
lease_file4_->append(*lease);
}
+ // Update lease internal information with new values.
+ lease->updateInternalTimestamp();
+
// Use replace() to re-index leases.
index.replace(lease_it, Lease4Ptr(new Lease4(*lease)));
}
lease_file6_->append(*lease);
}
+ // Update lease internal information with new values.
+ lease->updateInternalTimestamp();
+
// Use replace() to re-index leases.
index.replace(lease_it, Lease6Ptr(new Lease6(*lease)));
}
// We verify the "time" change in case the lease returned to us
// by expectOneLease ever becomes a copy and not what is in the lease mgr.
--lease->cltt_;
+ --lease->old_cltt_;
Lease6Ptr from_mgr = LeaseMgrFactory::instance().getLease6(lease->type_,
lease->addr_);
ASSERT_TRUE(from_mgr);
// We verify the "time" change in case the lease returned to us
// by expectOneLease ever becomes a copy and not what is in the lease mgr.
--lease->cltt_;
+ --lease->old_cltt_;
Lease6Ptr from_mgr = LeaseMgrFactory::instance().getLease6(lease->type_,
lease->addr_);
ASSERT_TRUE(from_mgr);