public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - rgmanager: Don't allow migrate of frozen services
@ 2009-07-09 16:07 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-07-09 16:07 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=6b751d048dd2068c5c62019b675d0d3699409a63
Commit:        6b751d048dd2068c5c62019b675d0d3699409a63
Parent:        3da1f7f4ffc11c95cb492500f1fc9d01d745cf8d
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:30 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 16204e1..d137f45 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -871,6 +871,11 @@ svc_migrate(const 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();


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-09 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 16:07 cluster: STABLE3 - rgmanager: Don't allow migrate of frozen services Lon Hohberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).