Author: jfrederic.clere(a)jboss.com
Date: 2008-06-02 07:55:05 -0400 (Mon, 02 Jun 2008)
New Revision: 1647
Modified:
trunk/mod_cluster/native/mod_manager/mod_manager.c
Log:
Don't process stuff on "removed" nodes.
Modified: trunk/mod_cluster/native/mod_manager/mod_manager.c
===================================================================
--- trunk/mod_cluster/native/mod_manager/mod_manager.c 2008-05-30 18:41:31 UTC (rev 1646)
+++ trunk/mod_cluster/native/mod_manager/mod_manager.c 2008-06-02 11:55:05 UTC (rev 1647)
@@ -821,6 +821,17 @@
return MNODERD;
}
+ /* If the node is marked removed check what to do */
+ if (node->mess.remove) {
+ if (status == REMOVE)
+ return NULL; /* Already done */
+ else {
+ /* Act has if the node wasn't found */
+ *errtype = TYPEMEM;
+ return MNODERD;
+ }
+ }
+
/* Process the * APP commands */
if (strcmp(r->uri, "*") == 0 || strcmp(r->uri, "/*") ==0)
{
return (process_node_cmd(r, status, errtype, node));
Show replies by date