costin 02/04/11 17:23:42
Modified: jk/native2/include jk_worker.h
Log:
Add extra field to avoid reallocating the array all the time
Revision Changes Path
1.14 +7 -4 jakarta-tomcat-connectors/jk/native2/include/jk_worker.h
Index: jk_worker.h
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_worker.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- jk_worker.h 18 Mar 2002 17:56:40 -0000 1.13
+++ jk_worker.h 12 Apr 2002 00:23:42 -0000 1.14
@@ -58,7 +58,7 @@
/***************************************************************************
* Description: Workers controller header file *
* Author: Gal Shachor <shachor@il.ibm.com> *
- * Version: $Revision: 1.13 $ *
+ * Version: $Revision: 1.14 $ *
***************************************************************************/
#ifndef JK_WORKER_H
@@ -179,12 +179,15 @@
*/
struct jk_exception *lastError;
- /** If num_of_workers > 0 this is an load balancing worker
+ /** For load balancing workers
*/
- jk_worker_t **lb_workers;
struct jk_map *lbWorkerMap;
- int num_of_workers;
+ /* Cache for fast access. Do we need it ? XXX Move to a private structure */
+ jk_worker_t **lb_workers;
+ int lb_workers_size;
+ int num_of_workers;
+
/*
* Do whatever initialization needs to be done to start this worker up.
* Configuration options are passed in via the props parameter.
--
To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
|