This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: RHEL5 - rgmanager: Don't allow migrate of frozen services
- From: Lon Hohberger <lon at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Thu, 9 Jul 2009 16:04:57 +0000 (UTC)
- Subject: cluster: RHEL5 - rgmanager: Don't allow migrate of frozen services
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=a06e21bd1c7fc0590f1734db650bf7b6c60594bb
Commit: a06e21bd1c7fc0590f1734db650bf7b6c60594bb
Parent: c39f57ec2b16c5e98f3214f6ed0374ab455b8084
Author: Lon Hohberger <lhh@redhat.com>
AuthorDate: Thu Jul 9 11:04:35 2009 -0400
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Thu Jul 9 12:02:03 2009 -0400
rgmanager: Don't allow migrate of frozen services
Resolves: Red Hat Bugzilla #510017
Signed-off-by: Lon Hohberger <lhh@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 3660b71..f703583 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();