Skip to contentSkip to conversation

cluster/group/daemon cpg.c

Cluster-devel [email protected] 1 participant 1 message Sep 28, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-09-28 19:26:45

Modified files:
group/daemon : cpg.c

Log message:
put a message in syslog if we get a cpg error that we can't deal with

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

group/daemon/cpg.c +2 -3
@@ -547,15 +547,14 @@
 
  retry:
 	error = cpg_mcast_joined(h, CPG_TYPE_AGREED, &iov, 1);
-	if (error != CPG_OK)
-		log_group(g, "cpg_mcast_joined error %d handle %llx", error, h);
 	if (error == CPG_ERR_TRY_AGAIN) {
 		retries++;
 		usleep(1000);
 		if (!(retries % 100))
 			log_error(g, "cpg_mcast_joined retry %d", retries);
 		goto retry;
-	}
+	} else if (error != CPG_OK)
+		log_error(g, "cpg_mcast_joined error %d handle %llx", error, h);
 
 	if (retries)
 		log_group(g, "cpg_mcast_joined retried %d", retries);