summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-12-13 01:11:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:27 -0500
commit6b232e8c1f60186c8a34f3f5b899eed80916f0e8 (patch)
tree05e2e79fa2ccc88a2651f2306f9a2608747b66d6 /source3
parentebb8161e1c1d39b01ca4b6128edb87a0123f3093 (diff)
downloadsamba-6b232e8c1f60186c8a34f3f5b899eed80916f0e8.tar.gz
samba-6b232e8c1f60186c8a34f3f5b899eed80916f0e8.tar.bz2
samba-6b232e8c1f60186c8a34f3f5b899eed80916f0e8.zip
r20146: Now online checks are fully async we can do them
every cache timeout times. Jeremy. (This used to be commit 5d364bc5ccc45b8d7bf3e484d16b37ac9e06b5cf)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_cm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index 07360e85d5..ea2c0b1eac 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/nsswitch/winbindd_cm.c
@@ -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;
}
}