public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: David Teigland <teigland@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: gfs2-utils: master - gfs_controld: dlm_controld failure is cluster_dead
Date: Tue, 10 Mar 2009 20:57:00 -0000	[thread overview]
Message-ID: <20090310205731.6779E1202D2@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=ec9ec0451669c081bde50ad41280b94aa2e0c11b
Commit:        ec9ec0451669c081bde50ad41280b94aa2e0c11b
Parent:        4355e3e4252e7bc185c15f4a2d3c53a433c01cc4
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Tue Mar 10 15:53:11 2009 -0500
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Tue Mar 10 15:53:11 2009 -0500

gfs_controld: dlm_controld failure is cluster_dead

Losing the dlm_controld connection is equivalent to a cluster failure.

Signed-off-by: David Teigland <teigland@redhat.com>
---
 group/gfs_controld/main.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/group/gfs_controld/main.c b/group/gfs_controld/main.c
index 53d6e90..3383453 100644
--- a/group/gfs_controld/main.c
+++ b/group/gfs_controld/main.c
@@ -1041,13 +1041,6 @@ void cluster_dead(int ci)
 	cluster_down = 1;
 }
 
-static void dlmcontrol_dead(int ci)
-{
-	if (!list_empty(&mountgroups))
-		log_error("dlm_controld is gone");
-	client_dead(ci);
-}
-
 static void loop(void)
 {
 	int poll_timeout = -1;
@@ -1096,7 +1089,7 @@ static void loop(void)
 	rv = setup_dlmcontrol();
 	if (rv < 0)
 		goto out;
-	client_add(rv, process_dlmcontrol, dlmcontrol_dead);
+	client_add(rv, process_dlmcontrol, cluster_dead);
 
 	for (;;) {
 		rv = poll(pollfd, client_maxi + 1, poll_timeout);


                 reply	other threads:[~2009-03-10 20:57 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=20090310205731.6779E1202D2@lists.fedorahosted.org \
    --to=teigland@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).