public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: gfs2-utils: master - gfs_controld: Remove some unused code
Date: Thu, 23 Jul 2009 09:14:00 -0000	[thread overview]
Message-ID: <20090723091409.9AC77120337@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=7a5b9055ce63203dfe355d81bb98d1a00d6234b4
Commit:        7a5b9055ce63203dfe355d81bb98d1a00d6234b4
Parent:        60d5d7cbd26888177653a766bd476c307b091074
Author:        Steven Whitehouse <swhiteho@redhat.com>
AuthorDate:    Wed Jul 22 18:36:29 2009 +0100
Committer:     Steven Whitehouse <swhiteho@redhat.com>
CommitterDate: Wed Jul 22 18:36:29 2009 +0100

gfs_controld: Remove some unused code

There were three hunks of unused code in gfs_controld. One can be
enabled since its only debugging. One is really documentation, so
the comment has been updated to explain why its still there. The
third is also really documentation, and also updated.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
 group/gfs_controld/cpg-new.c     |    8 ++++----
 group/gfs_controld/member_cman.c |   15 +++++++--------
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/group/gfs_controld/cpg-new.c b/group/gfs_controld/cpg-new.c
index 399ac16..7d71712 100644
--- a/group/gfs_controld/cpg-new.c
+++ b/group/gfs_controld/cpg-new.c
@@ -1755,7 +1755,6 @@ static void create_new_nodes(struct mountgroup *mg)
 	}
 }
 
-#if 0
 static void print_id_list(struct mountgroup *mg, struct id_info *ids,
 			  int id_count, int id_size)
 {
@@ -1768,7 +1767,6 @@ static void print_id_list(struct mountgroup *mg, struct id_info *ids,
 		id = (struct id_info *)((char *)id + id_size);
 	}
 }
-#endif
 
 static void create_failed_journals(struct mountgroup *mg)
 {
@@ -1783,7 +1781,7 @@ static void create_failed_journals(struct mountgroup *mg)
 		log_group(mg, "create_failed_journals all new");
 		return;
 	}
-	/* print_id_list(mg, ids, id_count, id_size); */
+	print_id_list(mg, ids, id_count, id_size);
 
 	id = ids;
 
@@ -2248,7 +2246,9 @@ static int pick_journal_to_recover(struct mountgroup *mg, int *jid)
 
 #if 0
 	/* FIXME: do something so this doesn't happen so regularly; maybe
-	   retry only after all nodes have failed */
+	 * retry only after all nodes have failed. This code doesn't work
+	 * but shows an idea of roughly how to fix the issue.
+	 */
 
 	/* Retry recoveries that failed the first time.  This is necessary
 	   at times for withrawn journals when all nodes fail the recovery
diff --git a/group/gfs_controld/member_cman.c b/group/gfs_controld/member_cman.c
index 384fab0..16631d3 100644
--- a/group/gfs_controld/member_cman.c
+++ b/group/gfs_controld/member_cman.c
@@ -84,12 +84,11 @@ void close_cluster_cfg(void)
 	corosync_cfg_finalize(ch);
 }
 
-/* what's the replacement for this? */
-#if 0
-	case CMAN_REASON_CONFIG_UPDATE:
-		setup_logging();
-		setup_ccs();
-		break;
-	}
-#endif
+/* what's the replacement for this?
+ *	case CMAN_REASON_CONFIG_UPDATE:
+ *		setup_logging();
+ *		setup_ccs();
+ *		break;
+ *	}
+ */
 


                 reply	other threads:[~2009-07-23  9: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=20090723091409.9AC77120337@lists.fedorahosted.org \
    --to=swhiteho@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).