* [Cluster-devel] cluster/cmirror/src cluster.c
@ 2008-01-18 21:00 jbrassow
0 siblings, 0 replies; 3+ messages in thread
From: jbrassow @ 2008-01-18 21:00 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow at sourceware.org 2008-01-18 21:00:16
Modified files:
cmirror/src : cluster.c
Log message:
- fix seg fault if there are pending checkpoint requests when a mirror
is shutdown.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/cluster.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.9&r2=1.1.2.10
--- cluster/cmirror/src/Attic/cluster.c 2008/01/18 17:11:07 1.1.2.9
+++ cluster/cmirror/src/Attic/cluster.c 2008/01/18 21:00:15 1.1.2.10
@@ -46,6 +46,7 @@
/* Are we the first, or have we received checkpoint? */
int valid;
+ int free_me;
struct queue *startup_queue;
int checkpoints_needed;
@@ -578,6 +579,11 @@
if (r != SA_AIS_OK)
LOG_ERROR("cpg_dispatch failed: %d", r);
+ if (entry->free_me) {
+ free(entry);
+ continue;
+ }
+
for (cp = entry->checkpoint_list; cp;) {
LOG_ERROR("Checkpoint data available for node %u",
cp->requester);
@@ -810,7 +816,7 @@
LOG_ERROR("Startup items remain in cluster log");
free(match->startup_queue);
- free(match);
+ match->free_me = 1;
goto out;
}
^ permalink raw reply [flat|nested] 3+ messages in thread* [Cluster-devel] cluster/cmirror/src cluster.c
@ 2008-02-05 23:25 jbrassow
0 siblings, 0 replies; 3+ messages in thread
From: jbrassow @ 2008-02-05 23:25 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow at sourceware.org 2008-02-05 23:25:51
Modified files:
cmirror/src : cluster.c
Log message:
- missed an initialization
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/cluster.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.13&r2=1.1.2.14
--- cluster/cmirror/src/Attic/cluster.c 2008/02/05 22:12:54 1.1.2.13
+++ cluster/cmirror/src/Attic/cluster.c 2008/02/05 23:25:51 1.1.2.14
@@ -206,6 +206,7 @@
SHORT_UUID(tfr->uuid), RQ_TYPE(tfr->request_type),
(unsigned long long)tfr->seq);
+ INIT_LIST_HEAD(&l);
queue_remove_all(&l, cluster_queue);
LOG_ERROR("Current list:");
list_for_each_safe(p, n, &l) {
^ permalink raw reply [flat|nested] 3+ messages in thread* [Cluster-devel] cluster/cmirror/src cluster.c
@ 2007-11-19 18:00 jbrassow
0 siblings, 0 replies; 3+ messages in thread
From: jbrassow @ 2007-11-19 18:00 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow at sourceware.org 2007-11-19 18:00:20
Modified files:
cmirror/src : cluster.c
Log message:
- remove stray 'goto' statement. Fixes issue where server refuses to
accept responsibility during some activation scenarios.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/cluster.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.6&r2=1.1.2.7
--- cluster/cmirror/src/Attic/cluster.c 2007/11/09 05:47:05 1.1.2.6
+++ cluster/cmirror/src/Attic/cluster.c 2007/11/19 18:00:20 1.1.2.7
@@ -21,7 +21,6 @@
#define DM_CLOG_RESPONSE 0x1000 /* in last byte of 32-bit value */
#define DM_CLOG_CHECKPOINT_READY ((uint32_t)-1)
-#define DM_CLOG_CHECKPOINT_REQUEST 0
static uint32_t my_cluster_id = 0xDEAD;
static SaCkptHandleT ckpt_handle;
@@ -162,6 +161,11 @@
/*
* Errors from previous functions are in the tfr struct.
*/
+
+ LOG_DBG("Sending respose to %u on cluster: [%s/%llu]",
+ tfr->originator,
+ RQ_TYPE(tfr->request_type & ~DM_CLOG_RESPONSE),
+ tfr->seq);
r = cluster_send(tfr);
if (r)
LOG_ERROR("cluster_send failed");
@@ -768,9 +772,9 @@
if (!left_list_entries &&
(member_list_entries == 1) && (joined_list_entries == 1) &&
(member_list[0].nodeid == joined_list[0].nodeid)) {
- match->lowest_id = my_cluster_id = joined_list[0].nodeid;
LOG_DBG("I am the log server (and first to join) for %s",
match->name.value);
+ match->lowest_id = my_cluster_id = joined_list[0].nodeid;
match->valid = 1;
goto out;
}
@@ -789,7 +793,6 @@
LOG_PRINT("Setting my cluster id: %u", my_cluster_id);
}
}
- goto out;
}
/* Find the lowest_id, i.e. the server */
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-05 23:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18 21:00 [Cluster-devel] cluster/cmirror/src cluster.c jbrassow
-- strict thread matches above, loose matches on Subject: below --
2008-02-05 23:25 jbrassow
2007-11-19 18:00 jbrassow
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).