]> granicus.if.org Git - apache/commitdiff
Temporary make balancer working.
authorMladen Turk <mturk@apache.org>
Fri, 19 Aug 2005 11:58:36 +0000 (11:58 +0000)
committerMladen Turk <mturk@apache.org>
Fri, 19 Aug 2005 11:58:36 +0000 (11:58 +0000)
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

index af409f67a2ca69cad94d68fd65466eb78f72e7f6..cebfd5919936a6e875a5a59397ce73a8aa62b03d 100644 (file)
@@ -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);
 
 /*