Gitweb:
http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=4769ced12fb...
Commit: 4769ced12fb3a834f801b26d975f023600662245
Parent: d4ec75242b7f7e7463113eb36cfba07112630125
Author: Christine Caulfield <ccaulfie(a)redhat.com>
AuthorDate: Thu Jan 14 09:53:44 2016 +0000
Committer: Christine Caulfield <ccaulfie(a)redhat.com>
CommitterDate: Thu Jan 14 09:55:35 2016 +0000
cman: Properly check for votes when node names aren't specified
Signed-off-by: Ken Gaillot <kgaillot(a)redhat.com>
Reviewed-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 7d35bea..c50767c 100644
--- a/cman/daemon/cmanconfig.c
+++ b/cman/daemon/cmanconfig.c
@@ -221,7 +221,7 @@ static int get_cman_join_info(struct corosync_api_v1 *corosync)
}
node_object = nodelist_byname(corosync, cluster_parent_handle, our_nodename);
- if (!node_object) {
+ if (!votes && !node_object) {
log_printf(LOG_ERR, "unable to find votes for %s", our_nodename);
write_cman_pipe("Unable to find votes for node in CCS");
return -E2BIG;