[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/group/daemon cpg.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland 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

--- cluster/group/daemon/cpg.c	2006/09/26 21:32:38	1.33
+++ cluster/group/daemon/cpg.c	2006/09/28 19:26:45	1.34
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]