Skip to contentSkip to conversation

Cluster Project branch, RHEL5, updated. cmirror_1_1_15-25-g5cd4597

Cluster-devel [email protected] 1 participant 1 message Mar 26, 2008

lore
Share & tools
lore
#0 lore raw

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=5cd4597c0fd297414389f5cab77a115425570d8a

The branch, RHEL5 has been updated

       via  5cd4597c0fd297414389f5cab77a115425570d8a (commit)
       via  8a08d3be6b94a2cb9691e908f230ae6add29ccef (commit)
       via  2200d92f9ebc30fca8f4107929fc4707b57bcebd (commit)
       via  c749f5d08a8145308a98c551facfde0e4b80062c (commit)
       via  5c25534a1de557083aba092c76a7f3e380c4b108 (commit)
       via  492c4e3df027d04b3cc431807cc439979816f351 (commit)
      from  fd9a026fe08393ef7f561bb28db1815cf160d15f (commit)

Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.

- Log ----------------------------------------------------------------- commit 5cd4597c0fd297414389f5cab77a115425570d8a
Merge: 8a08d3be6b94a2cb9691e908f230ae6add29ccef fd9a026fe08393ef7f561bb28db1815cf160d15f
Author: Jonathan Brassow <[email protected]>
Date: Wed Mar 26 14:13:17 2008 -0500

Merge branch 'RHEL5' of ssh://jbrassow at sources.redhat.com/git/cluster into rhel5

commit 8a08d3be6b94a2cb9691e908f230ae6add29ccef
Merge: 2200d92f9ebc30fca8f4107929fc4707b57bcebd 0484ef93e8d09313f8f110d23c2a6a6b4aca2f60
Author: Jonathan Brassow <[email protected]>
Date: Wed Mar 26 08:48:18 2008 -0500

Merge branch 'RHEL5' of ssh://jbrassow at sources.redhat.com/git/cluster into rhel5

commit 2200d92f9ebc30fca8f4107929fc4707b57bcebd

Author: Jonathan Brassow <[email protected]>
Date:   Mon Mar 24 16:09:52 2008 -0500

clogd: do not process requests after calling cpg_leave

commit c749f5d08a8145308a98c551facfde0e4b80062c

Author: Jonathan Brassow <[email protected]>
Date:   Wed Mar 5 16:11:28 2008 -0600

clogd: split cpg_config_callback into two functions

Easier to read/debug shorter functions cpg_config_callback now calls either cpg_join_callback or cpg_leave_callback

commit 5c25534a1de557083aba092c76a7f3e380c4b108

Author: Jonathan Brassow <[email protected]>
Date:   Wed Mar 5 10:22:03 2008 -0600

clogd: remove various debugging statements

commit 492c4e3df027d04b3cc431807cc439979816f351

Author: Jonathan Brassow <[email protected]>
Date:   Thu Feb 28 14:57:43 2008 -0600

clogd: small clean-ups

- pull some debug statements
- check for more errors (like short reads) when recv'ing from kernel

-----------------------------------------------------------------------

Summary of changes:

 cmirror/src/clogd.c     |    4 +
 cmirror/src/cluster.c   |  345 ++++++++++++++++++++++++++---------------------
 cmirror/src/functions.c |   86 +++++++++---
 cmirror/src/functions.h |    1 +
 cmirror/src/local.c     |   48 +++----
 cmirror/src/queues.c    |   29 ++++-
 6 files changed, 315 insertions(+), 198 deletions(-)
cmirror/src/clogd.c +4 -0
index 416084f..114c711 100644
@@ -127,6 +127,9 @@ static void process_signal(int sig){
 		queue_status(1);
 		log_status(1);
 		return;
+	case SIGUSR2:
+		log_validate();
+		return;
 	default:
 		LOG_PRINT("Unknown signal received... ignoring");
 		return;
@@ -234,6 +237,7 @@ static void daemonize(void)
 	signal(SIGHUP, &sig_handler);
 	signal(SIGPIPE, SIG_IGN);
 	signal(SIGUSR1, &sig_handler);
+	signal(SIGUSR2, &sig_handler);
 	sigemptyset(&signal_mask);
 	signal_received = 0;
 }
cmirror/src/cluster.c +194 -151

453 lines not on this page · raw message

cmirror/src/functions.c +65 -21

147 lines not on this page · raw message

cmirror/src/functions.h +1 -0
index b793511..f24d411 100644
@@ -20,4 +20,5 @@ int pull_state(const char *uuid, const char *which, char *buf, int size);
 
 int log_get_state(struct clog_tfr *tfr);
 int log_status(int);
+int log_validate(void);
 #endif /* __CLOG_FUNCTIONS_DOT_H__ */
cmirror/src/local.c +23 -25

118 lines not on this page · raw message

cmirror/src/queues.c +28 -1
index 0bf1aee..eeab79f 100644
@@ -1,6 +1,8 @@
 #include <stdio.h>
 #include <errno.h>
 
+#include <string.h>
+
 #include "queues.h"
 #include "common.h"
 #include "logging.h"
@@ -184,7 +186,12 @@ struct clog_tfr *queue_remove(struct queue *q)
 	tfr = (struct clog_tfr *)q->list.next;
 	list_del_init((struct list_head *)&tfr->private);
 	q->count--;
-
+/*
+	if (q == cluster_queue)
+		LOG_ERROR("[%s] remove %s %llu",
+			  SHORT_UUID(tfr->uuid), RQ_TYPE(tfr->request_type),
+			  (unsigned long long)tfr->seq);
+*/
 	return tfr;
 }
 
@@ -219,6 +226,12 @@ struct clog_tfr *queue_remove_match(struct queue *q,
 			list_del_init(p);
 			q->count--;
 
+/*
+			if (q == cluster_queue)
+				LOG_ERROR("[%s] remove match %s %llu",
+					  SHORT_UUID(tfr->uuid), RQ_TYPE(tfr->request_type),
+					  (unsigned long long)tfr->seq);
+*/
 			return tfr;
 		}
 	}
@@ -236,6 +249,20 @@ struct clog_tfr *queue_remove_match(struct queue *q,
  */
 void queue_remove_all(struct list_head *l, struct queue *q)
 {
+/*
+	struct clog_tfr *tfr;
+	struct list_head *p, *n;
+
+	if (q == cluster_queue) {
+		LOG_ERROR("[--] remove all");
+		list_for_each_safe(p, n, &q->list) {
+			tfr = (struct clog_tfr *)p;
+			LOG_ERROR("    [%s] %s %llu",
+				  SHORT_UUID(tfr->uuid), RQ_TYPE(tfr->request_type),
+				  (unsigned long long)tfr->seq);
+		}
+	}		
+*/
 	list_splice_init(&q->list, l);
 	q->count = 0;
 }

hooks/post-receive
--
Cluster Project