[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	2007-12-13 13:39:58

Modified files:
	cman/daemon    : ais.c 

Log message:
	Allow rrp_mode to be overridden in cluster.conf

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

--- cluster/cman/daemon/ais.c	2007/11/29 11:19:12	1.55
+++ cluster/cman/daemon/ais.c	2007/12/13 13:39:58	1.56
@@ -518,13 +518,15 @@
 
 
 		/* Set RRP mode appropriately */
-		if (num_interfaces > 1) {
-			global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),
-							"active", strlen("active")+1);
-		}
-		else {
-			global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),
-							"none", strlen("none")+1);
+		if (objdb_get_string(objdb, object_handle, "rrp_mode", &value)) {
+			if (num_interfaces > 1) {
+				global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),
+								"active", strlen("active")+1);
+			}
+			else {
+				global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),
+								"none", strlen("none")+1);
+			}
 		}
 
 		if (objdb_get_string(objdb, object_handle, "secauth", &value)) {


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