[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH] 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\n",
 		       svcName, memb_id_to_name(membership,
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]