[Cluster-devel] cluster/rgmanager/src/utils clustat.c

lhh at sourceware.org lhh at sourceware.org
Tue Feb 6 20:20:24 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	lhh at sourceware.org	2007-02-06 20:20:23

Modified files:
	rgmanager/src/utils: clustat.c 

Log message:
	Don't query rgmanager if the user only wants a node state

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clustat.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.25.2.4&r2=1.25.2.5

--- cluster/rgmanager/src/utils/clustat.c	2007/01/29 19:41:25	1.25.2.4
+++ cluster/rgmanager/src/utils/clustat.c	2007/02/06 20:20:23	1.25.2.5
@@ -957,7 +957,8 @@
 		qs = cman_is_quorate(ch);
 		membership = build_member_list(ch, &local_node_id);
 		
-		rgs = rg_state_list(local_node_id, fast);
+		if (!member_name)
+			rgs = rg_state_list(local_node_id, fast);
 		if (rgs) {
 			flag_rgmanager_nodes(membership);
 		}




More information about the Cluster-devel mailing list