From: Mladen Turk Date: Fri, 19 Aug 2005 11:58:36 +0000 (+0000) Subject: Temporary make balancer working. X-Git-Tag: 2.1.7~5^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b8fe8c738b6a3ea1356914dd1dce64bf52b879e;p=apache Temporary make balancer working. What is needed is a setup for the finder function introduced, but never implemented. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@233468 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index af409f67a2..cebfd59199 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -367,6 +367,13 @@ static proxy_worker *find_best_worker(proxy_balancer *balancer, if (PROXY_THREAD_LOCK(balancer) != APR_SUCCESS) return NULL; + if (!(*balancer->lbmethod->finder)) { + /* XXX: UGLY HACK!!! + * Where is the finder function setup? + */ + balancer->lbmethod->finder = find_best_byrequests; + } + candidate = (*balancer->lbmethod->finder)(balancer, r); /*