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: STABLE3 - cman: Catch failure to determine default multicast address Date: Mon, 15 Jun 2009 08:34:00 -0000 [thread overview] Message-ID: <20090615083340.29219120375@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e34576fbcb9d489d8e4c2e78c9b57e2f68ac18d3 Commit: e34576fbcb9d489d8e4c2e78c9b57e2f68ac18d3 Parent: 2236b1a9a6d0f64954dff0ba36930e4f93819a3f Author: Christine Caulfield <ccaulfie@redhat.com> AuthorDate: Mon Jun 15 09:32:14 2009 +0100 Committer: Christine Caulfield <ccaulfie@redhat.com> CommitterDate: Mon Jun 15 09:32:14 2009 +0100 cman: Catch failure to determine default multicast address default_mcast() can fail if it can't determine the IP version of the local host address. eg it might tbe ambiguous or not available in the hosts file for some strange reason Signed-off-by: Christine Caulfield <ccaulfie@redhat.com> --- cman/daemon/cman-preconfig.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c index 05c8f71..1dc7a26 100644 --- a/cman/daemon/cman-preconfig.c +++ b/cman/daemon/cman-preconfig.c @@ -590,7 +590,10 @@ static int get_nodename(struct objdb_iface_ver0 *objdb) if (!mcast_name) { mcast_name = default_mcast(nodename, cluster_id); + } + if (!mcast_name) + return -1; /* See if the user wants our default set of openais services (default=yes) */ objdb_get_int(objdb, object_handle, "disable_openais", &disable_openais, 0);
reply other threads:[~2009-06-15 8:34 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=20090615083340.29219120375@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).