Gitweb: http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=be46b108112a4…
Commit: be46b108112a4a5027bba42a4b54d619743c7b82
Parent: 9d6a1843fefe0799065afbe5d0a7637fed6887fc
Author: Christine Caulfield <ccaulfie(a)redhat.com>
AuthorDate: Thu Oct 30 09:48:15 2014 +0000
Committer: Christine Caulfield <ccaulfie(a)redhat.com>
CommitterDate: Thu Oct 30 09:48:15 2014 +0000
cman: fix misleading message if cluster has only one node
If a cluster is created with one node but two_node=1 is set then
cman exits with the message:
two_node set but there are more than 2 nodes
This patch changes the message slightly so it doesn't imply
that 1 is greater than 2!
Signed-off-by: Christine Caulfield <ccaulfie(a)redhat.com>
---
cman/daemon/cmanconfig.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cman/daemon/cmanconfig.c b/cman/daemon/cmanconfig.c
index 7eb52e4..d6758e6 100644
--- a/cman/daemon/cmanconfig.c
+++ b/cman/daemon/cmanconfig.c
@@ -270,7 +270,7 @@ static int get_cman_join_info(struct corosync_api_v1 *corosync)
"nodes with one vote each and expected "
"votes of 1 (node_count=%d vote_sum=%d)",
node_count, vote_sum);
- write_cman_pipe("two_node set but there are more than 2 nodes");
+ write_cman_pipe("two_node is set but there are not 2 nodes in cluster.conf");
error = -EINVAL;
goto out;
}