1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

r20146: Now online checks are fully async we can do them

every cache timeout times.
Jeremy.
(This used to be commit 5d364bc5ccc45b8d7bf3e484d16b37ac9e06b5cf)
This commit is contained in:
Jeremy Allison 2006-12-13 01:11:29 +00:00 committed by Gerald (Jerry) Carter
parent ebb8161e1c
commit 6b232e8c1f

View File

@ -271,7 +271,7 @@ static void check_domain_online_handler(struct timed_event *te,
}
/****************************************************************
If we're still offline, exponentially increase the timeout check.
If we're still offline setup the timeout check.
****************************************************************/
static void calc_new_online_timeout_check(struct winbindd_domain *domain)
@ -282,12 +282,6 @@ static void calc_new_online_timeout_check(struct winbindd_domain *domain)
domain->check_online_timeout = 10;
} else if (domain->check_online_timeout < wbc) {
domain->check_online_timeout = wbc;
} else {
uint32 new_to = domain->check_online_timeout * 3;
if (new_to > (3*60*60)) {
new_to = 3*60*60; /* 3 hours. */
}
domain->check_online_timeout = new_to;
}
}