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 17:11:09 GMT
mturk       2004/09/15 10:11:08

  Modified:    modules/proxy proxy_balancer.c
  Log:
  Fix core dump on WIN32 caused by the fact that there is no way to run a
  hook after ap_scoreboard_init. Since we only have a single child on
  WIN32 that isn't a big problem, cause plain memory is enough. Other
  platforms were not affected cause scoreboard_image is inherited from parent.
  
  Revision  Changes    Path
  1.21      +2 -1      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.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- proxy_balancer.c	15 Sep 2004 12:10:36 -0000	1.20
  +++ proxy_balancer.c	15 Sep 2004 17:11:08 -0000	1.21
  @@ -52,7 +52,8 @@
       for (i = 0; i < balancer->workers->nelts; i++) {
   #if PROXY_HAS_SCOREBOARD
           /* Get scoreboard slot */
  -        score = ap_get_scoreboard_lb(workers[i].id);
  +        if (ap_scoreboard_image)
  +            score = ap_get_scoreboard_lb(workers[i].id);
   #endif
           if (!score)
               score = apr_pcalloc(pool, sizeof(proxy_runtime_stat));
  
  
  

Mime
View raw message