cluster: RHEL55 - rgmanager: Don't allow migrate of frozen services

Lon Hohberger lon at fedoraproject.org
Tue Oct 27 19:35:35 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=1efff01c28dadf735cab90433c20a7dcbe3c81ef
Commit:        1efff01c28dadf735cab90433c20a7dcbe3c81ef
Parent:        fd211a2e9bcce6e439fb717dfa467278527b539c
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Thu Jul 9 11:04:35 2009 -0400
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Tue Oct 27 15:32:11 2009 -0400

rgmanager: Don't allow migrate of frozen services

Resolves: Red Hat Bugzilla #510017

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

diff --git a/rgmanager/src/daemons/rg_state.c b/rgmanager/src/daemons/rg_state.c
index 31664b9..b28c5f1 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -934,6 +934,11 @@ svc_migrate(char *svcName, int target)
 		return RG_EFAIL;
 	}
 
+	if (svcStatus.rs_flags & RG_FLAG_FROZEN) {
+		rg_unlock(&lockp);
+		return RG_EFROZEN;
+	}
+
 	/* LOCK HELD */
 	svcStatus.rs_owner = target;
 	svcStatus.rs_last_owner = my_id();


More information about the cluster-commits mailing list