[Cluster-devel] cluster/rgmanager/src/daemons restree.c

lhh at sourceware.org lhh at sourceware.org
Thu May 3 15:15:18 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2007-05-03 15:15:17

Modified files:
	rgmanager/src/daemons: restree.c 

Log message:
	Fix corner case reported in #212121

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/restree.c.diff?cvsroot=cluster&r1=1.29&r2=1.30

--- cluster/rgmanager/src/daemons/restree.c	2007/04/04 19:22:29	1.29
+++ cluster/rgmanager/src/daemons/restree.c	2007/05/03 15:15:17	1.30
@@ -543,7 +543,6 @@
 	resource_rule_t *childrule;
 	resource_node_t *node;
 	char *ref;
-	char *newchild;
 	char *tmp;
 	int ccount = 0, x = 0, y = 0, flags = 0;
 
@@ -672,15 +671,6 @@
 			free(ref);
 			continue;
 		}
-
-		/* store it once */
-		if (!flags && rule) {
-			//printf("Storing new child %s of %s\n",
-			       //ref, rule->rr_type);
-			newchild = strdup(ref);
-			store_childtype(&rule->rr_childtypes,
-					newchild, 0, 0, 0, 1);
-		}
 		free(ref);
 
 		x = 1;




More information about the Cluster-devel mailing list