From: lhh@sourceware.org <lhh@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager ChangeLog src/daemons/main.c
Date: 21 Aug 2006 15:14:13 -0000 [thread overview]
Message-ID: <20060821151413.29338.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2006-08-21 15:14:09
Modified files:
rgmanager : ChangeLog
rgmanager/src/daemons: main.c
Log message:
2006-08-21 Lon Hohberger <lhh@redhat.com>
* src/daemons/main.c: Fix #202500 - simultaneous starts confuse
rgmanager. This happened due to the fact that rgmanager was not
correctly determining port listening status of other nodes on the
first pass, and subsequent attempts to determine status of other
nodes were not tried.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&r1=1.21&r2=1.22
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/main.c.diff?cvsroot=cluster&r1=1.29&r2=1.30
--- cluster/rgmanager/ChangeLog 2006/08/18 20:33:24 1.21
+++ cluster/rgmanager/ChangeLog 2006/08/21 15:14:08 1.22
@@ -1,3 +1,10 @@
+2006-08-21 Lon Hohberger <lhh@redhat.com>
+ * src/daemons/main.c: Fix #202500 - simultaneous starts confuse
+ rgmanager. This happened due to the fact that rgmanager was not
+ correctly determining port listening status of other nodes on the
+ first pass, and subsequent attempts to determine status of other
+ nodes were not tried.
+
2006-08-18 Lon Hohberger <lhh@redhat.com>
* include/resgroup.h: Change ordering and add magic field to
rgmanager state field (warning: breaks compatibility from 08/08 CVS!)
--- cluster/rgmanager/src/daemons/main.c 2006/08/18 15:26:22 1.29
+++ cluster/rgmanager/src/daemons/main.c 2006/08/21 15:14:09 1.30
@@ -144,6 +144,10 @@
if (new_ml->cml_members[x].cn_nodeid == my_id())
continue;
+#ifdef DEBUG
+ printf("Checking for listening status of %d\n", new_ml->cml_members[x].cn_nodeid);
+#endif
+
do {
quorate = cman_is_listening(h,
new_ml->cml_members[x].cn_nodeid,
@@ -152,21 +156,18 @@
clulog(LOG_DEBUG, "Node %d is not listening\n",
new_ml->cml_members[x].cn_nodeid);
new_ml->cml_members[x].cn_member = 0;
- } else if (quorate == -1 && errno == EBUSY) {
+ } else if (quorate < 0) {
+ perror("cman_is_listening");
usleep(50000);
continue;
}
- if (quorate < 0) {
- perror("cman_is_listening");
- }
-
- if (quorate > 0) {
- printf("Node %d IS listening\n",
- new_ml->cml_members[x].cn_nodeid);
- }
-
- } while(0);
+#ifdef DEBUG
+ printf("Node %d IS listening\n",
+ new_ml->cml_members[x].cn_nodeid);
+#endif
+ break;
+ } while(1);
}
cman_finish(h);
reply other threads:[~2006-08-21 15:14 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=20060821151413.29338.qmail@sourceware.org \
--to=lhh@sourceware.org \
/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 NNTP newsgroup(s).