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/jk/native/common jk_lb_worker.c
Date Sun, 13 Feb 2005 12:21:57 GMT
mturk       2005/02/13 04:21:57

  Modified:    jk/native/common jk_lb_worker.c
  Log:
  Use shm_alloc_worker, so that worker get it's id set, and that we can
  monitor the total number of workers.
  
  Revision  Changes    Path
  1.47      +3 -3      jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
  
  Index: jk_lb_worker.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- jk_lb_worker.c	12 Feb 2005 19:22:35 -0000	1.46
  +++ jk_lb_worker.c	13 Feb 2005 12:21:57 -0000	1.47
  @@ -580,7 +580,7 @@
               }
   
               for (i = 0; i < num_of_workers; i++) {
  -                p->lb_workers[i].s = jk_shm_alloc(&p->p, sizeof(jk_shm_worker_t));
  +                p->lb_workers[i].s = jk_shm_alloc_worker(&p->p);
                   if (p->lb_workers[i].s == NULL) {
                       jk_log(l, JK_LOG_ERROR, 
                              "allocating worker record from shared memory");
  @@ -778,7 +778,7 @@
                           private_data->buf,
                           sizeof(jk_pool_atom_t) * TINY_POOL_SIZE);
   
  -        private_data->s = jk_shm_alloc(&private_data->p, sizeof(jk_shm_worker_t));
  +        private_data->s = jk_shm_alloc_worker(&private_data->p);
           if (!private_data->s) {
               free(private_data);
               JK_TRACE_EXIT(l);
  
  
  

---------------------------------------------------------------------
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