Author: jfrederic.clere(a)jboss.com
Date: 2008-04-25 05:02:41 -0400 (Fri, 25 Apr 2008)
New Revision: 1564
Modified:
sandbox/httpd/src/native/mod_manager/mod_manager.c
Log:
Add logic to request a CONFIG to ModClusterService.
Modified: sandbox/httpd/src/native/mod_manager/mod_manager.c
===================================================================
--- sandbox/httpd/src/native/mod_manager/mod_manager.c 2008-04-25 07:47:44 UTC (rev 1563)
+++ sandbox/httpd/src/native/mod_manager/mod_manager.c 2008-04-25 09:02:41 UTC (rev 1564)
@@ -22,6 +22,7 @@
#include "http_request.h"
#include "http_protocol.h"
#include "http_core.h"
+#include "scoreboard.h"
#include "node.h"
#include "host.h"
@@ -593,10 +594,15 @@
ap_rprintf(r, "Type=STATUS-RSP&JVMRoute=%s", nodeinfo.mess.JVMRoute);
if (proxy_cluster_isup(r, node->mess.id, Load) != OK)
- ap_rprintf(r, "&State=NOTOK\n");
+ ap_rprintf(r, "&State=NOTOK");
else
- ap_rprintf(r, "&State=OK\n");
+ ap_rprintf(r, "&State=OK");
+ if (ap_my_generation)
+ ap_rprintf(r, "&id=%d", ap_my_generation);
+ else
+ ap_rprintf(r, "&id=%d",
ap_scoreboard_image->global->restart_time);
+ ap_rprintf(r, "\n");
return OK;
}
Show replies by date