dlm: master - dlm_controld: require cluster_name

David Teigland teigland at fedoraproject.org
Wed Feb 15 19:35:04 UTC 2012


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=fd1a6e23de6397382732abb3b9286367b926ed33
Commit:        fd1a6e23de6397382732abb3b9286367b926ed33
Parent:        0f19d2e7fb331ba3aedc69c6bd3eb5a75cf631c5
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Wed Feb 15 13:15:24 2012 -0600
Committer:     David Teigland <teigland at redhat.com>
CommitterDate: Wed Feb 15 13:27:19 2012 -0600

dlm_controld: require cluster_name

Signed-off-by: David Teigland <teigland at redhat.com>
---
 dlm_controld/action.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlm_controld/action.c b/dlm_controld/action.c
index 8aa84a4..d4bf11d 100644
--- a/dlm_controld/action.c
+++ b/dlm_controld/action.c
@@ -848,10 +848,12 @@ int setup_configfs_options(void)
 
 		detect_cluster_name();
 
-		if (cluster_name[0])
+		if (cluster_name[0]) {
 			set_configfs_cluster("cluster_name", cluster_name, 0);
-		else
+		} else {
 			log_error("no cluster name");
+			return -1;
+		}
 	}
 	return 0;
 }


More information about the cluster-commits mailing list