public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Christine Caulfield <chrissie@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: master - cman: prevent accidents with cman_tool expected Date: Thu, 29 Jan 2009 14:28:00 -0000 [thread overview] Message-ID: <20090129142828.211F6120569@lists.fedorahosted.org> (raw) 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)))
reply other threads:[~2009-01-29 14:28 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090129142828.211F6120569@lists.fedorahosted.org \ --to=chrissie@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).