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

Lon Hohberger lon at fedoraproject.org
Wed Feb 22 14:46:46 UTC 2012


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=6563d1529e4929ad4094326da06ba1eb6b73c7c3
Commit:        6563d1529e4929ad4094326da06ba1eb6b73c7c3
Parent:        8168796b4f1d4e7435b2212a18d4cffbd86e1fa4
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Mon Aug 1 16:31:57 2011 -0400
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Tue Feb 21 13:27:22 2012 -0500

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.

Resolves: rhbz#727326

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 5501b3f..23a4bec 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -2293,6 +2293,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