From 9cdd58c159cde23cb9e84994f72f3e544317c2df Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 25 Mar 2009 18:39:19 +0000 Subject: [PATCH] no ap_my_generation git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758396 13f79535-47bb-0310-9956-ffa450edef68 --- modules/cluster/mod_heartbeat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/cluster/mod_heartbeat.c b/modules/cluster/mod_heartbeat.c index 2e8955bde2..35cb442a8d 100644 --- a/modules/cluster/mod_heartbeat.c +++ b/modules/cluster/mod_heartbeat.c @@ -55,6 +55,9 @@ static int hb_monitor(hb_ctx_t *ctx, apr_pool_t *p) int i, j; apr_uint32_t ready = 0; apr_uint32_t busy = 0; + ap_generation_t mpm_generation; + + ap_mpm_query(AP_MPMQ_GENERATION, &mpm_generation); for (i = 0; i < ctx->server_limit; i++) { process_score *ps; @@ -69,12 +72,12 @@ static int hb_monitor(hb_ctx_t *ctx, apr_pool_t *p) res = ws->status; - if (res == SERVER_READY && ps->generation == ap_my_generation) { + if (res == SERVER_READY && ps->generation == mpm_generation) { ready++; } else if (res != SERVER_DEAD && res != SERVER_STARTING && res != SERVER_IDLE_KILL && - ps->generation == ap_my_generation) { + ps->generation == mpm_generation) { busy++; } } -- 2.40.0