cluster: RHEL55 - rgmanager: Fix error recovery with central_processing

Lon Hohberger lon at fedoraproject.org
Mon Oct 26 21:48:21 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=63875d9ba9fe0e7af06f15f785a95b7a7720eba8
Commit:        63875d9ba9fe0e7af06f15f785a95b7a7720eba8
Parent:        4d4d992a0a861f5dca7af437009667e0284f4ce8
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Mon Oct 26 17:38:42 2009 -0400
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Mon Oct 26 17:42:14 2009 -0400

rgmanager: Fix error recovery with central_processing

Resolves: rhbz#530409

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

diff --git a/rgmanager/src/daemons/rg_state.c b/rgmanager/src/daemons/rg_state.c
index 0b52f09..31664b9 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -2138,7 +2138,8 @@ handle_start_remote_req(char *svcName, int req)
 	if (need_check)
 		pthread_mutex_unlock(&exclusive_mutex);
 
-	if (svc_stop(svcName, RG_STOP_RECOVER) == 0)
+	if (svc_stop(svcName, central_events_enabled() ?
+		     RG_STATE_STOPPED : RG_STOP_RECOVER) == 0)
 		return RG_EFAIL;
 
 	svc_fail(svcName);


More information about the cluster-commits mailing list