From 3b8fe8c738b6a3ea1356914dd1dce64bf52b879e Mon Sep 17 00:00:00 2001 From: Mladen Turk Date: Fri, 19 Aug 2005 11:58:36 +0000 Subject: [PATCH] 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 --- modules/proxy/mod_proxy_balancer.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index af409f67a2c..cebfd591993 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); /* -- 2.47.2