[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-08 23:14:56

Modified files:
	group/daemon   : cpg.c 

Log message:
	use same retry delay on cpg sends as gfs_controld, usleep(1000)
	between each retry

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

--- cluster/group/daemon/cpg.c	2006/07/07 15:13:13	1.30
+++ cluster/group/daemon/cpg.c	2006/09/08 23:14:56	1.31
@@ -528,11 +528,15 @@
 		log_group(g, "cpg_mcast_joined error %d handle %llx", error, h);
 	if (error == CPG_ERR_TRY_AGAIN) {
 		retries++;
-		if (retries > 3)
-			sleep(1);
+		usleep(1000);
+		if (!(retries % 100))
+			log_error(g, "cpg_mcast_joined retry %d", retries);
 		goto retry;
 	}
 
+	if (retries)
+		log_group(g, "cpg_mcast_joined retried %d", retries);
+
 	return 0;
 }
 


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