Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 24e278e14a25367b8cb2fce8af484abd > files > 48

cman-2.0.115-96.el5_8.3.src.rpm

From 4ec386998729159bb68c74c9ddb8636d9f901025 Mon Sep 17 00:00:00 2001
From: Christine Caulfield <ccaulfie@redhat.com>
Date: Tue, 29 Jul 2008 13:52:14 +0100
Subject: [PATCH] Display the node's votes in cman_tool status

I'm not sure how this one slipped the net.

Resolves: rhbz#653508

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

diff --git a/cman/cman_tool/main.c b/cman/cman_tool/main.c
index 7c56556..9575c59 100644
--- a/cman/cman_tool/main.c
+++ b/cman/cman_tool/main.c
@@ -230,6 +230,7 @@ static void show_status(void)
 	if (cman_get_quorum_device(h, &qinfo) == 0 && qinfo.qi_state == 2)
 		printf("Quorum device votes: %d\n", qinfo.qi_votes);
 	printf("Total votes: %d\n", einfo->ei_total_votes);
+	printf("Node votes: %d\n", einfo->ei_node_votes);
 
 	printf("Quorum: %d %s\n", einfo->ei_quorum, quorate?" ":"Activity blocked");
 	printf("Active subsystems: %d\n", cman_get_subsys_count(h));
-- 
1.7.2.3