This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: master - cman: Make cman-preconfig reload <totem> too


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=97bc1e541cfa2d258bf3bd876ba49badf5fffba1
Commit:        97bc1e541cfa2d258bf3bd876ba49badf5fffba1
Parent:        0b1491c87a6232f815812ec0b42a42ebc5ee4c28
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Thu Dec 11 16:07:50 2008 +0000
Committer:     Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Thu Dec 11 16:07:50 2008 +0000

cman: Make cman-preconfig reload <totem> too

When reload is called we now create a new totem key for corosync. I have
a patch for corosync that will allow dynamic configuration
of totem parameters.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
 cman/daemon/cman-preconfig.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index b69b619..4b721bf 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -1069,6 +1069,17 @@ static int cmanpre_reloadconfig(struct objdb_iface_ver0 *objdb, int flush, char
 	/* copy /cluster/logging to /logging */
 	ret = copy_tree_to_root(objdb, "logging", 0);
 
+	/* destroy top level /totem */
+	objdb->object_find_create(OBJECT_PARENT_HANDLE, "totem", strlen("totem"), &find_handle);
+	objdb->object_find_next(find_handle, &object_handle);
+	objdb->object_find_destroy(find_handle);
+	if (object_handle) {
+		objdb->object_destroy(object_handle);
+	}
+
+	/* copy /cluster/totem to /totem */
+	ret = copy_tree_to_root(objdb, "totem", 0);
+
 	return 0;
 
 err:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]