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

[Cluster-devel] cluster/cman/daemon cmanccs.c commands.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield sourceware org	2007-05-18 10:13:35

Modified files:
	cman/daemon    : cmanccs.c commands.c 

Log message:
	Allow ccs to change the two_node flag.
	bz#240508

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/cmanccs.c.diff?cvsroot=cluster&r1=1.26&r2=1.27
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&r1=1.61&r2=1.62

--- cluster/cman/daemon/cmanccs.c	2007/03/15 11:12:33	1.26
+++ cluster/cman/daemon/cmanccs.c	2007/05/18 10:13:35	1.27
@@ -61,7 +61,7 @@
 static int  portnums[MAX_NODENAMES];
 static char *mcast[MAX_NODENAMES];
 static int num_nodenames;
-static int two_node;
+       int two_node;
        char *key_filename;
 static char *mcast_name;
 static unsigned char votes;
@@ -123,6 +123,8 @@
 	    two_node = atoi(str);
 	    free(str);
     }
+    else
+	two_node = 0;
 
     for (i=1;;i++) {
 	char nodekey[256];
--- cluster/cman/daemon/commands.c	2007/01/17 15:02:49	1.61
+++ cluster/cman/daemon/commands.c	2007/05/18 10:13:35	1.62
@@ -61,7 +61,7 @@
        unsigned int config_version;
 static struct cluster_node *us;
 static int quorum;
-static int two_node;
+extern int two_node;
        unsigned int quorumdev_poll=10000;
        unsigned int shutdown_timeout=5000;
        unsigned int ccsd_poll_interval=1000;


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