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 11-19-2007, 05:00 PM
 
Default [Cluster-devel] cluster/cmirror/src cluster.c

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

Thread Tools




All times are GMT. The time now is 11:26 PM.

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