public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Chris Feist <cfeist@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: the tag rgmanager_1_9_83 has been created
Date: Wed, 04 Feb 2009 21:17:00 -0000	[thread overview]
Message-ID: <20090204211719.AC23E1205B6@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=729d4d6350276969808a70993e0464164b7ec38e
Commit:        729d4d6350276969808a70993e0464164b7ec38e
Parent:        c4a768addd3891029c141a2ccdc9a2032c855412
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Wed Feb 4 14:56:50 2009 +0000
Committer:     Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Wed Feb 4 14:56:50 2009 +0000

cman_tool: show node state correctly on a configless cluster

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
 cman/services/cman/lib/libcman.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/cman/services/cman/lib/libcman.c b/cman/services/cman/lib/libcman.c
index 148881f..56ade49 100644
--- a/cman/services/cman/lib/libcman.c
+++ b/cman/services/cman/lib/libcman.c
@@ -1053,7 +1053,7 @@ int cman_get_nodes(cman_handle_t handle, int maxnodes, int *retnodes, cman_node_
 	int ccs_handle;
 	char *value;
 	int ret;
-	int i,j;
+	int i;
 	int num_nodes = 0;
 	char path[PATH_MAX];
 	int noconfig_flag=0;
@@ -1099,13 +1099,7 @@ int cman_get_nodes(cman_handle_t handle, int maxnodes, int *retnodes, cman_node_
 				sprintf(nodes[i].cn_name, "Node-%x", nodes[i].cn_nodeid);
 			}
 
-			/* Reconcile with active nodes list. */
-			for (j=0; j < cman_inst->node_count; j++) {
-				if (cman_inst->node_list[j].nodeid == nodes[i].cn_nodeid) {
-					nodes[i].cn_member = (cman_inst->node_list[j].state == NODESTATE_MEMBER);
-				}
-			}
-
+			nodes[i].cn_member = (cman_inst->node_list[i].state == NODESTATE_MEMBER);
 		}
 	}
 	else {


                 reply	other threads:[~2009-02-04 21:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090204211719.AC23E1205B6@lists.fedorahosted.org \
    --to=cfeist@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).