public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: master - cman: prevent accidents with cman_tool expected
@ 2009-01-29 14:28 Christine Caulfield
0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-01-29 14:28 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=684e8533f7a6e360d519382a312fe76b9dff8511
Commit: 684e8533f7a6e360d519382a312fe76b9dff8511
Parent: a1620c2b08020ec676f4e0ab451f627393124142
Author: Christine Caulfield <ccaulfie@redhat.com>
AuthorDate: Thu Jan 29 14:28:08 2009 +0000
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Thu Jan 29 14:28:08 2009 +0000
cman: prevent accidents with cman_tool expected
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
cman/cman_tool/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cman/cman_tool/main.c b/cman/cman_tool/main.c
index 7f6dc6c..ef71eca 100644
--- a/cman/cman_tool/main.c
+++ b/cman/cman_tool/main.c
@@ -532,6 +532,10 @@ static void set_expected(commandline_t *comline)
cman_handle_t h;
int result;
+ if (comline->expected_votes == 0) {
+ die("expected_votes not specified");
+ }
+
h = open_cman_handle(1);
if ((result = cman_set_expected_votes(h, comline->expected_votes)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-29 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-29 14:28 cluster: master - cman: prevent accidents with cman_tool expected Christine Caulfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).