public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Lon Hohberger <lon@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: rgmanager: master - rgmanager: Don't allow migrate of frozen services Date: Thu, 09 Jul 2009 16:47:00 -0000 [thread overview] Message-ID: <20090709164726.072571201FE@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/rgmanager.git?p=rgmanager.git;a=commitdiff;h=202c45ed9d52bb5e3e13920b548790fe02c5c044 Commit: 202c45ed9d52bb5e3e13920b548790fe02c5c044 Parent: 0bfff9e9bec649f4947ef4b9a164ffdd9ecce0f9 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:47:01 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 7eea6ba..45981db 100644 --- a/rgmanager/src/daemons/rg_state.c +++ b/rgmanager/src/daemons/rg_state.c @@ -873,6 +873,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();
reply other threads:[~2009-07-09 16:47 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090709164726.072571201FE@lists.fedorahosted.org \ --to=lon@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).