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-12-2011, 03:45 PM
Lon Hohberger
 
Default rgmanager: Update last_owner on failover

From: igor <igor1182@gmail.com>

This is a clean cherry pick in to the RHEL6 branch

Resolves: rhbz#639103

Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
rgmanager/src/daemons/rg_state.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rgmanager/src/daemons/rg_state.c b/rgmanager/src/daemons/rg_state.c
index d23772f..7c437db 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -618,6 +618,7 @@ svc_advise_start(rg_state_t *svcStatus, const char *svcName, int req)
/*
* Service is running but owner is down -> RG_EFAILOVER
*/
+ svcStatus->rs_last_owner = svcStatus->rs_owner;
logt_print(LOG_NOTICE,
"Taking over service %s from down member %s
",
svcName, memb_id_to_name(membership,
--
1.7.1.1
 
Old 01-12-2011, 04:07 PM
"Fabio M. Di Nitto"
 
Default rgmanager: Update last_owner on failover

ACK´ed

Fabio

On 1/12/2011 5:45 PM, Lon Hohberger wrote:
> From: igor <igor1182@gmail.com>
>
> This is a clean cherry pick in to the RHEL6 branch
>
> Resolves: rhbz#639103
>
> Signed-off-by: Lon Hohberger <lhh@redhat.com>
> ---
> rgmanager/src/daemons/rg_state.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/rgmanager/src/daemons/rg_state.c b/rgmanager/src/daemons/rg_state.c
> index d23772f..7c437db 100644
> --- a/rgmanager/src/daemons/rg_state.c
> +++ b/rgmanager/src/daemons/rg_state.c
> @@ -618,6 +618,7 @@ svc_advise_start(rg_state_t *svcStatus, const char *svcName, int req)
> /*
> * Service is running but owner is down -> RG_EFAILOVER
> */
> + svcStatus->rs_last_owner = svcStatus->rs_owner;
> logt_print(LOG_NOTICE,
> "Taking over service %s from down member %s
",
> svcName, memb_id_to_name(membership,
 

Thread Tools




All times are GMT. The time now is 12:10 PM.

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