httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_balancer.c
Date Wed, 15 Sep 2004 18:27:09 GMT
mturk       2004/09/15 11:27:08

  Modified:    modules/proxy proxy_balancer.c
  Log:
  Do not set shared data from previous worker if ap_get_scoreboard_lb fails.
  
  Revision  Changes    Path
  1.22      +3 -2      httpd-2.0/modules/proxy/proxy_balancer.c
  
  Index: proxy_balancer.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_balancer.c,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- proxy_balancer.c	15 Sep 2004 17:11:08 -0000	1.21
  +++ proxy_balancer.c	15 Sep 2004 18:27:08 -0000	1.22
  @@ -42,14 +42,15 @@
       double median, ffactor = 0.0;
       proxy_runtime_worker *workers;    
   #if PROXY_HAS_SCOREBOARD
  -    lb_score *score = NULL;
  +    lb_score *score;
   #else
  -    void *score = NULL;
  +    void *score;
   #endif
   
       workers = (proxy_runtime_worker *)balancer->workers->elts;
   
       for (i = 0; i < balancer->workers->nelts; i++) {
  +        score = NULL;
   #if PROXY_HAS_SCOREBOARD
           /* Get scoreboard slot */
           if (ap_scoreboard_image)
  
  
  

Mime
View raw message