Skip to contentSkip to conversation

cluster/group/daemon app.c

Cluster-devel [email protected] 3 participants 3 messages Jul 14, 2006 – Jul 17, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-07-14 20:45:28

Modified files:
group/daemon : app.c

Log message:
node A may get a start cb and send a started message, and node B may receive the started message before it gets its own start cb; node B shouldn't ignore the started message from A.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/app.c.diff?cvsroot=cluster&r1=1.34&r2=1.35

group/daemon/app.c +2 -4
@@ -1079,11 +1079,9 @@
 {
 	node_t *node;
 
-	if (!event_state_starting(a)) {
-		log_error(a->g, "mark_node_started: event not starting %d "
+	if (!event_state_starting(a))
+		log_debug(a->g, "mark_node_started: event not starting %d "
 			  "from %d", a->current_event->state, nodeid);
-		return -1;
-	}
 
 	node = find_app_node(a, nodeid);
 	if (!node) {
#1 lore raw
Quoted 6 lines · teigland at sourceware.org

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/app.c.diff?cvsroot=cluster&r1=1.34&r2=1.35

group/daemon/app.c line 1086

Quoted 10 lines
group/daemon/app.c +2 -4
@@ -1079,11 +1079,9 @@
 {
 	node_t *node;
 
-	if (!event_state_starting(a)) {
-		log_error(a->g, "mark_node_started: event not starting %d "
+	if (!event_state_starting(a))
+		log_debug(a->g, "mark_node_started: event not starting %d "
 			  "from %d", a->current_event->state, nodeid);
-		return -1;
-	}

Hi,

This commit fails to build. I am not sure if you want log_debug or log_error there, but in case of log_debug it's enough to remove "a->g,".

Thanks
Fabio

Signature · 1 line
I'm going to make him an offer he can't refuse.
#2 lore raw

I've checked-in a fix. I hit this problem this morning as well.

Thanks.

Ryan

Quoted 27 lines · Fabio Massimo Di Nitto
Quoted 6 lines · teigland at sourceware.org

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/app.c.diff?cvsroot=cluster&r1=1.34&r2=1.35

group/daemon/app.c line 1086

Quoted 10 lines
group/daemon/app.c +2 -4
@@ -1079,11 +1079,9 @@
 {
 	node_t *node;
 
-	if (!event_state_starting(a)) {
-		log_error(a->g, "mark_node_started: event not starting %d "
+	if (!event_state_starting(a))
+		log_debug(a->g, "mark_node_started: event not starting %d "
 			  "from %d", a->current_event->state, nodeid);
-		return -1;
-	}

Hi,

This commit fails to build. I am not sure if you want log_debug or log_error there, but in case of log_debug it's enough to remove "a->g,".

Thanks
Fabio