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

[Cluster-devel] cluster/cman/daemon ais.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield sourceware org	2006-10-31 09:28:13

Modified files:
	cman/daemon    : ais.c 

Log message:
	Set the default token timeout to 5 seconds. It can still be overridden
	in cluster.conf if required.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.42&r2=1.43

--- cluster/cman/daemon/ais.c	2006/10/05 07:48:33	1.42
+++ cluster/cman/daemon/ais.c	2006/10/31 09:28:12	1.43
@@ -470,6 +470,8 @@
 			       "totem", strlen("totem"),
 			       &object_handle) == 0)
 	{
+		void *value = NULL;
+
 		objdb->object_key_create(object_handle, "version", strlen("version"),
 					 "2", 2);
 
@@ -480,6 +482,13 @@
 		objdb->object_key_create(object_handle, "vsftype", strlen("vsftype"),
 					 "none", strlen("none")+1);
 
+		/* Set the token timeout is 5 seconds, but don't overrride anything that
+		   might be in cluster.conf */
+		if (objdb->object_key_get(object_handle, "token", strlen("token"), &value, NULL) || value == NULL) {
+			global_objdb->object_key_create(object_handle, "token", strlen("token"),
+							"5000", strlen("5000")+1);
+		}
+
 		/* Set RRP mode appropriately */
 		if (num_interfaces > 1) {
 			global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),


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