tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/ajp/proxy mod_proxy.c
Date Tue, 03 Aug 2004 19:56:18 GMT
mturk       2004/08/03 12:56:18

  Modified:    ajp/proxy mod_proxy.c
  Log:
  Obtain balancer using API.
  
  Revision  Changes    Path
  1.10      +2 -9      jakarta-tomcat-connectors/ajp/proxy/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/proxy/mod_proxy.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- mod_proxy.c	3 Aug 2004 19:49:04 -0000	1.9
  +++ mod_proxy.c	3 Aug 2004 19:56:18 -0000	1.10
  @@ -1032,7 +1032,7 @@
       server_rec *s = cmd->server;
       proxy_server_conf *conf =
       ap_get_module_config(s->module_config, &proxy_module);
  -    struct proxy_balancer *balancer, *balancers;
  +    struct proxy_balancer *balancer;
       proxy_worker *worker;
       char *path = NULL;
       char *name = NULL;
  @@ -1092,14 +1092,7 @@
           }
       }
       /* Try to find the balancer */
  -    balancers = (struct proxy_balancer *)conf->balancers->elts;
  -    for (i = 0; i < conf->balancers->nelts; i++) {
  -        if (!strcmp(name, balancers[i].name)) {
  -            balancer = &balancers[i];
  -            break;
  -        }
  -    }
  -
  +    balancer = ap_proxy_get_balancer(cmd->temp_pool, conf, name); 
       if (!balancer) {
           apr_status_t rc = 0;
   #if DEBUGGING
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message