You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Akins <br...@turner.com> on 2006/05/15 13:50:45 UTC
move ap_sb_handle_t def
Any objections to these two small diffs? Basically, it just moves the
definition of ap_sb_handle_t from being private in scoreboard.c to being
available to everyone in scoreboard.h. This allows modules to get a
scoreboard handle for themself using r->connection->sbh.
Thoughts?
--- include/scoreboard.h.bak 2006-05-15 07:44:02.000000000 -0400
+++ include/scoreboard.h 2006-05-15 07:44:47.000000000 -0400
@@ -169,7 +169,10 @@
lb_score *balancers;
} scoreboard;
-typedef struct ap_sb_handle_t ap_sb_handle_t;
+typedef struct {
+ int child_num;
+ int thread_num;
+} ap_sb_handle_t;
AP_DECLARE(int) ap_exists_scoreboard_image(void);
AP_DECLARE(void) ap_increment_counts(ap_sb_handle_t *sbh, request_rec *r);
--- server/scoreboard.c.bak 2006-05-15 07:42:39.000000000 -0400
+++ server/scoreboard.c 2006-05-15 07:43:53.000000000 -0400
@@ -63,11 +63,6 @@
static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_workers)
*proxy_lb_workers;
-struct ap_sb_handle_t {
- int child_num;
- int thread_num;
-};
-
static int server_limit, thread_limit, lb_limit;
static apr_size_t scoreboard_size;
--
Brian Akins
Lead Systems Engineer
CNN Internet Technologies