Commit d78fe64f authored by Mladen Turk's avatar Mladen Turk
Browse files

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
parent aad80d6e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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);

/*