public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* RHEL5 - cman: Fix cman_tool nodes -a
@ 2008-08-13 16:57 Christine Caulfield
  0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2008-08-13 16:57 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=feafe729f0fa9104854c1a79f59a5ff5813db828
Commit:        feafe729f0fa9104854c1a79f59a5ff5813db828
Parent:        12749e4f6dfec9ade39522dc3c6cb9d82fbac050
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Wed Aug 13 17:16:46 2008 +0100
Committer:     Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Wed Aug 13 17:16:46 2008 +0100

cman: Fix cman_tool nodes -a

cman_tool nodes -a use the same iterator variable for the node list
and the list of IP addresses for that node. This caused it to
loop indefinitely on some (most) clusters.

This fixes BZ#454401

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
 cman/cman_tool/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cman/cman_tool/main.c b/cman/cman_tool/main.c
index c7c488f..7c56556 100644
--- a/cman/cman_tool/main.c
+++ b/cman/cman_tool/main.c
@@ -465,9 +465,9 @@ static void show_nodes(commandline_t *comline)
 			{
 				if (!comline->format_opts) {
 					printf("       Addresses: ");
-					for (i = 0; i < numaddrs; i++)
+					for (j = 0; j < numaddrs; j++)
 					{
-						print_address(addrs[i].cna_address);
+						print_address(addrs[j].cna_address);
 						printf(" ");
 					}
 					printf("\n");


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-13 16:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-13 16:57 RHEL5 - cman: Fix cman_tool nodes -a Christine Caulfield

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).