FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 01-18-2008, 08:00 PM
 
Default cluster/cmirror/src cluster.c

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow@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;
}
 
Old 02-05-2008, 10:25 PM
 
Default cluster/cmirror/src cluster.c

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow@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) {
 

Thread Tools




All times are GMT. The time now is 10:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org