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 - groupd: libcpg mode can skip some more libgroupstuff


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2fd6fa43396e5525fcfb48c2a17cec5b74be0b99
Commit:        2fd6fa43396e5525fcfb48c2a17cec5b74be0b99
Parent:        5f105ff199ca15d65f1b3c9d34b9cb7e7a53abec
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Mon Nov 24 11:33:13 2008 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Mon Nov 24 16:20:02 2008 -0600

groupd: libcpg mode can skip some more libgroup stuff

In confchg for the "groupd" cpg, we should exit earlier when in
libcpg mode instead of going through pointless libgroup steps.

Signed-off-by: David Teigland <teigland@redhat.com>
---
 group/daemon/cpg.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/group/daemon/cpg.c b/group/daemon/cpg.c
index fe47ad8..6195d49 100644
--- a/group/daemon/cpg.c
+++ b/group/daemon/cpg.c
@@ -500,6 +500,9 @@ void process_groupd_confchg(void)
 	memcpy(&groupd_cpg_member, &saved_member, sizeof(saved_member));
 	groupd_cpg_member_count = saved_member_count;
 
+	if (group_mode != GROUP_LIBGROUP)
+		return;
+
 	for (i = 0; i < saved_member_count; i++) {
 		if (saved_member[i].nodeid == our_nodeid &&
 		    saved_member[i].pid == (uint32_t) getpid()) {


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