cluster: master - cman: make sure we load corosync's quorum service
Christine Caulfield
chrissie@fedoraproject.org
Tue Jan 27 12:57:00 GMT 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ae050d89cf32c6408af1ca7a28c832f7b546c790
Commit: ae050d89cf32c6408af1ca7a28c832f7b546c790
Parent: 88ea8eac58662f32b22b011f80eaca2636a036c0
Author: Christine Caulfield <ccaulfie@redhat.com>
AuthorDate: Tue Jan 27 10:11:07 2009 +0000
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Tue Jan 27 12:55:57 2009 +0000
cman: make sure we load corosync's quorum service
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
cman/config/cman-preconfig.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/cman/config/cman-preconfig.c b/cman/config/cman-preconfig.c
index c3d9cee..ce63545 100644
--- a/cman/config/cman-preconfig.c
+++ b/cman/config/cman-preconfig.c
@@ -823,6 +823,14 @@ static void add_cman_overrides(struct objdb_iface_ver0 *objdb)
}
objdb->object_find_destroy(find_handle);
+ /* Load the quorum service */
+ objdb->object_create(OBJECT_PARENT_HANDLE, &object_handle,
+ "service", strlen("service"));
+ objdb->object_key_create(object_handle, "name", strlen("name"),
+ "corosync_quorum", strlen("corosync_quorum") + 1);
+ objdb->object_key_create(object_handle, "ver", strlen("ver"),
+ "0", 2);
+
/* Make sure we load our alter-ego - the main cman module */
objdb->object_create(OBJECT_PARENT_HANDLE, &object_handle,
"service", strlen("service"));
More information about the Cluster-cvs
mailing list