1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Mladen Turk
2005-08-19 11:58:36 +00:00
parent 4a91b094f8
commit 3b8fe8c738

View File

@@ -367,6 +367,13 @@ static proxy_worker *find_best_worker(proxy_balancer *balancer,
if (PROXY_THREAD_LOCK(balancer) != APR_SUCCESS) if (PROXY_THREAD_LOCK(balancer) != APR_SUCCESS)
return NULL; 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); candidate = (*balancer->lbmethod->finder)(balancer, r);
/* /*