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-02-2008, 06:54 PM
 
Default cluster/rgmanager/src/daemons rg_state.c

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh@sourceware.org 2008-01-02 19:54:28

Modified files:
rgmanager/src/daemons: rg_state.c

Log message:
Fix endian issue on big-endian arches

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&r1=1.44&r2=1.45

--- cluster/rgmanager/src/daemons/rg_state.c 2007/12/30 08:27:21 1.44
+++ cluster/rgmanager/src/daemons/rg_state.c 2008/01/02 19:54:28 1.45
@@ -270,6 +270,7 @@
set_rg_state(char *name, rg_state_t *svcblk)
{
char res[256];
+ rg_state_t svcblk_store;
#ifndef OPENAIS
cluster_member_list_t *membership;
int ret, tries = 0;
@@ -279,8 +280,12 @@
strncpy(svcblk->rs_name, name, sizeof(svcblk->rs_name));

snprintf(res, sizeof(res), "rg="%s"", name);
+
+ memcpy(&svcblk_store, svcblk, sizeof(svcblk_store));
+ swab_rg_state_t(&svcblk_store);
+
#ifdef OPENAIS
- if (ds_write(res, svcblk, sizeof(*svcblk)) < 0)
+ if (ds_write(res, &svcblk_store, sizeof(svcblk_store)) < 0)
return -1;
return 0;
#else
@@ -288,8 +293,9 @@
/* Retry up to 3 times just in case members transition
while we're trying to commit something */
membership = member_list();
- ret = vf_write(membership, VFF_IGN_CONN_ERRORS, res, svcblk,
- sizeof(*svcblk));
+ ret = vf_write(membership, VFF_IGN_CONN_ERRORS, res,
+ &svcblk_store,
+ sizeof(svcblk_store));
free_member_list(membership);
} while (ret == VFR_TIMEOUT && ++tries < 3);

@@ -360,6 +366,7 @@
}

memcpy(svcblk, data, sizeof(*svcblk));
+ swab_rg_state_t(svcblk);

return 0;
#else
@@ -399,6 +406,7 @@

/* Copy out the data. */
memcpy(svcblk, data, sizeof(*svcblk));
+ swab_rg_state_t(svcblk);
free(data);
free_member_list(membership);

@@ -452,6 +460,7 @@

/* Copy out the data. */
memcpy(svcblk, data, sizeof(*svcblk));
+ swab_rg_state_t(svcblk);
#ifndef OPENAIS
free(data);
#endif
 
Old 01-16-2008, 05:50 PM
 
Default cluster/rgmanager/src/daemons rg_state.c

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh@sourceware.org 2008-01-16 18:50:29

Modified files:
rgmanager/src/daemons: rg_state.c

Log message:
Fix #60 error in #428346 bug

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&only_with_tag=RHEL 5&r1=1.24.2.15&r2=1.24.2.16

--- cluster/rgmanager/src/daemons/rg_state.c 2007/12/18 17:52:56 1.24.2.15
+++ cluster/rgmanager/src/daemons/rg_state.c 2008/01/16 18:50:29 1.24.2.16
@@ -1508,8 +1508,9 @@
do {
msg_ret = msg_receive(&ctx, &msg_relo,
sizeof (SmMessageSt), 10);
+
if ((msg_ret == -1 && errno != ETIMEDOUT) ||
- (msg_ret >= 0)) {
+ (msg_ret > 0)) {
break;
}
 
Old 01-16-2008, 05:51 PM
 
Default cluster/rgmanager/src/daemons rg_state.c

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh@sourceware.org 2008-01-16 18:51:11

Modified files:
rgmanager/src/daemons: rg_state.c

Log message:
Fix #60 error in #428346 bug

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&r1=1.45&r2=1.46

--- cluster/rgmanager/src/daemons/rg_state.c 2008/01/02 19:54:28 1.45
+++ cluster/rgmanager/src/daemons/rg_state.c 2008/01/16 18:51:11 1.46
@@ -1621,8 +1621,9 @@
do {
msg_ret = msg_receive(&ctx, &msg_relo,
sizeof (SmMessageSt), 10);
+
if ((msg_ret == -1 && errno != ETIMEDOUT) ||
- (msg_ret >= 0)) {
+ (msg_ret > 0)) {
break;
}
 
Old 02-01-2008, 02:31 PM
 
Default cluster/rgmanager/src/daemons rg_state.c

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh@sourceware.org 2008-02-01 15:31:06

Modified files:
rgmanager/src/daemons: rg_state.c

Log message:
Fix double-stop

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&only_with_tag=RHEL 5&r1=1.24.2.18&r2=1.24.2.19

--- cluster/rgmanager/src/daemons/rg_state.c 2008/02/01 15:15:02 1.24.2.18
+++ cluster/rgmanager/src/daemons/rg_state.c 2008/02/01 15:31:05 1.24.2.19
@@ -1303,6 +1303,7 @@
clulog(LOG_ERR, "#52: Failed changing RG status
");
return RG_EFAIL;
}
+ return 0;
}

clulog(LOG_NOTICE, "Stopping service %s
", svcName);
 
Old 02-01-2008, 04:21 PM
 
Default cluster/rgmanager/src/daemons rg_state.c

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh@sourceware.org 2008-02-01 17:21:24

Modified files:
rgmanager/src/daemons: rg_state.c

Log message:
#400211 - make sure we release the lock

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&only_with_tag=RHEL 5&r1=1.24.2.19&r2=1.24.2.20

--- cluster/rgmanager/src/daemons/rg_state.c 2008/02/01 15:31:05 1.24.2.19
+++ cluster/rgmanager/src/daemons/rg_state.c 2008/02/01 17:21:23 1.24.2.20
@@ -1299,10 +1299,10 @@
svcStatus.rs_state = newstate;

if (set_rg_state(svcName, &svcStatus) != 0) {
- rg_unlock(&lockp);
clulog(LOG_ERR, "#52: Failed changing RG status
");
return RG_EFAIL;
}
+ rg_unlock(&lockp);
return 0;
}
 
Old 02-05-2008, 06:47 PM
 
Default cluster/rgmanager/src/daemons rg_state.c

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL51
Changes by: lhh@sourceware.org 2008-02-05 19:47:17

Modified files:
rgmanager/src/daemons: rg_state.c

Log message:
Fix #431520

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&only_with_tag=RHEL 51&r1=1.24.2.10.2.4&r2=1.24.2.10.2.5

--- cluster/rgmanager/src/daemons/rg_state.c 2008/01/25 16:04:51 1.24.2.10.2.4
+++ cluster/rgmanager/src/daemons/rg_state.c 2008/02/05 19:47:17 1.24.2.10.2.5
@@ -862,6 +862,12 @@
return RG_EFAIL;
}

+ if (svcStatus.rs_owner == target) {
+ rg_unlock(&lockp);
+ /* Do not allow migration to its current owner! */
+ return 0;
+ }
+
if (svcStatus.rs_owner != my_id()) {
rg_unlock(&lockp);
return RG_EFORWARD;
 

Thread Tools




All times are GMT. The time now is 01:11 AM.

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