httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy mod_proxy.c
Date Wed, 11 Aug 2004 21:26:03 GMT
wrowe       2004/08/11 14:26:03

  Modified:    modules/proxy mod_proxy.c
  Log:
  Obtain balancer using API.
  
  Submitted by: mturk
  
  Revision  Changes    Path
  1.106     +2 -9      httpd-2.0/modules/proxy/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.c,v
  retrieving revision 1.105
  retrieving revision 1.106
  diff -u -r1.105 -r1.106
  --- mod_proxy.c	11 Aug 2004 21:25:15 -0000	1.105
  +++ mod_proxy.c	11 Aug 2004 21:26:03 -0000	1.106
  @@ -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
  
  
  

Mime
View raw message