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: cluster: RHEL5 - rgmanager: follow-service.sl stack cleanup Date: Fri, 26 Jun 2009 18:24:00 -0000 [thread overview] Message-ID: <20090626182416.49B43120286@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4730b0a0f8ec1021115fc626a59b97a5920244a8 Commit: 4730b0a0f8ec1021115fc626a59b97a5920244a8 Parent: 6442d9f60e650fc6669e6422207f27a073aca8ac Author: Lon Hohberger <lhh@redhat.com> AuthorDate: Tue Jun 23 15:43:14 2009 -0400 Committer: Lon Hohberger <lhh@redhat.com> CommitterDate: Fri Jun 26 14:24:06 2009 -0400 rgmanager: follow-service.sl stack cleanup Signed-off-by: Lon Hohberger <lhh@redhat.com> --- rgmanager/src/resources/follow-service.sl | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rgmanager/src/resources/follow-service.sl b/rgmanager/src/resources/follow-service.sl index 639fb7c..f823205 100644 --- a/rgmanager/src/resources/follow-service.sl +++ b/rgmanager/src/resources/follow-service.sl @@ -40,7 +40,7 @@ define nodelist_online(service_name) { % define follow_service(svc1, svc2, master) %, followslave) { - variable state, owner_svc1, owner_svc2; + variable state_svc1, state_svc2, owner_svc1, owner_svc2; variable nodes1, nodes2, allowed; debug("*** FOLLOW_SERVICE: follow_service(",svc1,", ",svc2,", ", master, ")"); @@ -55,11 +55,11 @@ define follow_service(svc1, svc2, master) %, followslave) } % get infos we need to decide further - (owner_svc1, state) = service_status(svc1); - (owner_svc2, state) = service_status(svc2); + (,,, owner_svc1, state_svc1) = service_status(svc1); + (,,, owner_svc2, state_svc2) = service_status(svc2); nodes1 = nodelist_online(svc1); nodes2 = nodelist_online(svc2); - debug("*** FOLLOW_SERVICE: service_status(",svc1,"): ", service_status(svc1)); + debug("*** FOLLOW_SERVICE: service_status(",svc1,"): ", state_svc1); debug("*** FOLLOW_SERVICE: owner_svc1: ", owner_svc1, ", owner_svc2: ", owner_svc2, ", nodes1: ", nodes1, ", nodes2: ", nodes2); if (((event_type == EVENT_NODE) and (owner_svc1 == node_id) and (node_state == NODE_OFFLINE) and (owner_svc2 >=0)) or @@ -91,7 +91,7 @@ define follow_service(svc1, svc2, master) %, followslave) % either svc2 is the master or there are node were to start svc2 if ((master == svc2) or (length(allowed) > 0)) { ()=service_stop(svc2); - ()=service_start(svc2, allowed); + ()=service_start(svc2, allowed); } } else if (((event_type == EVENT_NODE) and (owner_svc2 == node_id) and (node_state == NODE_OFFLINE) and (owner_svc2 >=0)) or
reply other threads:[~2009-06-26 18:24 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=20090626182416.49B43120286@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).