Skip to contentSkip to conversation

cluster/cman/daemon config.c

Cluster-devel [email protected] 2 participants 2 messages Feb 18, 2008 – Mar 14, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: ccaulfield at sourceware.org 2008-02-18 17:25:42

Modified files:
cman/daemon : config.c

Log message:
Allow unnamed parent objects. This fixes a bug where
<fence> entries appeared under the top-level rather than the clusternode.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/config.c.diff?cvsroot=cluster&r1=1.20&r2=1.21

cman/daemon/config.c +4 -0
@@ -115,6 +115,10 @@
 		{
 			char subpath[1024];
 
+			/* Allow for empty parents */
+			if (!object_handle)
+				object_handle = parent;
+
 			/* Found a subkey, iterate through it's sub sections */
 			sprintf(subpath, "%s/%s[%d]", key, str, ++count);
 			if (!read_config_for(ccs_fd, objdb, object_handle, str, subpath, 0))
#1 lore raw

Was this commit really ment to go to CVS?

Fabio

Quoted 18 lines · ccaulfield at sourceware.org

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: ccaulfield at sourceware.org 2008-02-18 17:25:42

Modified files:
cman/daemon : config.c

Log message:
Allow unnamed parent objects. This fixes a bug where
<fence> entries appeared under the top-level rather than the clusternode.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/config.c.diff?cvsroot=cluster&r1=1.20&r2=1.21

cman/daemon/config.c line 124

Quoted 10 lines
cman/daemon/config.c +4 -0
@@ -115,6 +115,10 @@
 		{
 			char subpath[1024];
 
+			/* Allow for empty parents */
+			if (!object_handle)
+				object_handle = parent;
+
 			/* Found a subkey, iterate through it's sub sections */
 			sprintf(subpath, "%s/%s[%d]", key, str, ++count);
 			if (!read_config_for(ccs_fd, objdb, object_handle, str, subpath, 0))

--
I'm going to make him an offer he can't refuse.