This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
RHEL5 - cman: Fix cman_tool nodes -a
- From: Christine Caulfield <chrissie at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Wed, 13 Aug 2008 16:18:08 +0000 (UTC)
- Subject: RHEL5 - cman: Fix cman_tool nodes -a
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");