cluster: STABLE31 - rgmanager: Fix clusvcadm message when run with -F

Lon Hohberger lon at fedoraproject.org
Mon Aug 1 20:37:48 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=b5f6b9d830bc4111d6de37ffe5bd7ea2c30f989c
Commit:        b5f6b9d830bc4111d6de37ffe5bd7ea2c30f989c
Parent:        8e6660824136681b73506d49776f70b8a372ec63
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Mon Aug 1 16:31:57 2011 -0400
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Mon Aug 1 16:35:55 2011 -0400

rgmanager: Fix clusvcadm message when run with -F

The new_owner was not being correctly set when enabling a service with
-F when run without central processing enabled.

Signed-off-by: Lon Hohberger <lhh at 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 9292add..3db6bd9 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -2300,6 +2300,7 @@ handle_fd_start_req(char *svcName, int request, int *new_owner)
 
 		switch(ret) {
 		case RG_ESUCCESS:
+			*new_owner = target;
 		    	ret = RG_ESUCCESS;
 			goto out;
 		case RG_ERUN:


More information about the cluster-commits mailing list