public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Lon Hohberger <lon@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: STABLE3 - rgmanager: Fix timeouts while trying to locate virtual machines
Date: Fri, 06 Mar 2009 15:15:00 -0000 [thread overview]
Message-ID: <20090306151440.9DC0F1201C1@lists.fedorahosted.org> (raw)
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=86d62ae741bd345a094f6ed53ee5e1906e1d54e8
Commit: 86d62ae741bd345a094f6ed53ee5e1906e1d54e8
Parent: b4939e9e1ded08594c3b86237b24318f3d23414f
Author: Lon Hohberger <lhh@redhat.com>
AuthorDate: Thu Mar 5 16:33:16 2009 -0500
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Fri Mar 6 10:13:47 2009 -0500
rgmanager: Fix timeouts while trying to locate virtual machines
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
rgmanager/src/daemons/rg_state.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/rgmanager/src/daemons/rg_state.c b/rgmanager/src/daemons/rg_state.c
index 7937c0d..18dd8ae 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -1036,7 +1036,7 @@ get_new_owner(char *svcName)
continue;
if (msg_open(MSG_CLUSTER, membership->cml_members[x].cn_nodeid,
- RG_PORT, &ctx, 2) < 0) {
+ RG_PORT, &ctx, 10) < 0) {
/* failed to open: better to claim false successful
status rather than claim a failure and possibly
end up with a service on >1 node */
@@ -1044,8 +1044,9 @@ get_new_owner(char *svcName)
}
msg_send(&ctx, &msgp, sizeof(msgp));
- if (msg_receive(&ctx, &response, sizeof (response), 5) != sizeof(response))
- goto cont;;
+ if (msg_receive(&ctx, &response, sizeof (response), 10) !=
+ sizeof(response))
+ goto cont;
swab_SmMessageSt(&response);
if (response.sm_data.d_ret == RG_SUCCESS)
reply other threads:[~2009-03-06 15:15 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=20090306151440.9DC0F1201C1@lists.fedorahosted.org \
--to=lon@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: link
Be 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).