Home | History | Annotate | Download | only in ServiceRegistration

Lines Matching refs:lease_expiry

316         if (hp->lease_expiry < now) {
319 expiry = (int)((hp->lease_expiry - now) / 1000); // This should never be >MAXINT
677 if (!host->lease_expiry || host->lease_expiry < now) {
678 INFO("host lease has expired, not retrying: lease_expiry = %" PRId64
679 " now = %" PRId64 " difference = %" PRId64, host->lease_expiry, now, host->lease_expiry - now);
1028 if (expire && (host->lease_expiry == 0 || host->lease_expiry <= ioloop_timenow())) {
1253 host->lease_expiry = ioloop_timenow() + 10 * 1000; // ten seconds
1276 if (host->lease_expiry < now) {
1294 if (instance->lease_expiry < now) {
1313 int64_t next_lease_expiry = host->lease_expiry;
1322 if (next_lease_expiry > instance->lease_expiry) {
1323 next_lease_expiry = instance->lease_expiry;
1753 // update->lease_expiry is nonzero if we are re-doing a previous registration.
1754 if (update->lease_expiry != 0) {
1755 if (update->lease_expiry < now) {
1758 host->registered_name, now - update->lease_expiry);
1764 INFO("lease_expiry (1) for host " PRI_S_SRP " set to %" PRId64, host->name,
1765 (int64_t)(update->lease_expiry - now));
1767 next_lease_expiry = update->lease_expiry;
1769 host->lease_expiry = update->lease_expiry;
1774 INFO("lease_expiry (2) for host " PRI_S_SRP " set to %ld", host->name, (host->lease_interval - lease_offset) * 1000);
1780 host->lease_expiry = next_lease_expiry;
1794 INFO("lease_expiry (7) for host " PRI_S_SRP " removed instance " PRI_S_SRP "." PRI_S_SRP
1796 (int64_t)(instance->lease_expiry - now));
1800 INFO("lease_expiry (4) for host " PRI_S_SRP " instance " PRI_S_SRP "." PRI_S_SRP " set to %" PRId64,
1802 (int64_t)(host->lease_expiry - now));
1804 instance->lease_expiry = host->lease_expiry;
1809 else if (instance->lease_expiry > now && instance->lease_expiry < next_lease_expiry) {
1811 INFO("lease_expiry (3) for host " PRI_S_SRP " instance " PRI_S_SRP "." PRI_S_SRP " set to %" PRId64,
1813 (int64_t)(instance->lease_expiry - now));
1815 next_lease_expiry = instance->lease_expiry;
1817 if (instance->lease_expiry <= now) {
1819 INFO("lease_expiry (5) for host " PRI_S_SRP " instance " PRI_S_SRP "." PRI_S_SRP
1822 (int64_t)(now - instance->lease_expiry));
1827 INFO("lease_expiry (6) for host " PRI_S_SRP " instance " PRI_S_SRP "." PRI_S_SRP
1829 instance->service_type, (int64_t)(next_lease_expiry - instance->lease_expiry));
2336 update->lease_expiry = host->lease_expiry;