public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - rgmanager: follow-service.sl stack cleanup
@ 2009-06-26 18:24 Lon Hohberger
0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-06-26 18:24 UTC (permalink / raw)
To: cluster-cvs-relay
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-26 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-26 18:24 cluster: RHEL5 - rgmanager: follow-service.sl stack cleanup 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).