Skip to contentSkip to conversation

cluster/cman/daemon ais.c cmanccs.c commands.c

Cluster-devel [email protected] 1 participant 1 message Aug 2, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2006-08-02 11:54:37

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

Log message:
if we can't get the latest config from CCS, poll it until we do.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.33&r2=1.34
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/cmanccs.c.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&r1=1.45&r2=1.46

cman/daemon/ais.c +2 -0
@@ -46,6 +46,7 @@
 extern char cluster_name[MAX_CLUSTER_NAME_LEN+1];
 extern char *key_filename;
 extern unsigned int quorumdev_poll;
+extern unsigned int ccsd_poll_interval;
 extern unsigned int shutdown_timeout;
 extern int init_config(struct objdb_iface_ver0 *objdb);
 
@@ -239,6 +240,7 @@
 	{
 		objdb_get_int(objdb, object_handle, "quorum_dev_poll", &quorumdev_poll);
 		objdb_get_int(objdb, object_handle, "shutdown_timeout", &shutdown_timeout);
+		objdb_get_int(objdb, object_handle, "ccsd_poll", &ccsd_poll_interval);
 
 		/* Only use the CCS version of this if it was not overridden on the command-line */
 		if (!getenv("CMAN_DEBUGLOG"))
cman/daemon/cmanccs.c +0 -8
@@ -107,14 +107,6 @@
     if (!ccs_get(ctree, CONFIG_VERSION_PATH, &str)) {
 	    config = atoi(str);
 	    free(str);
-
-	    /* config_version is zero at startup when we read initial config */
-	    if (*config_version && config != *config_version) {
-		    ccs_disconnect(ctree);
-		    log_msg(LOG_ERR, "CCS version is %d, we expected %d. config not updated\n",
-			    config, *config_version);
-		    return -1;
-	    }
 	    *config_version = config;
     }
 
cman/daemon/commands.c +43 -8

119 lines not on this page · raw message