cluster: RHEL57 - rgmanager: Fix nofailback when service is in 'starting' state
Lon Hohberger
lon at fedoraproject.org
Tue Feb 15 20:55:08 UTC 2011
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=d7c4483a3f4a1d91b14e9e7d879f5039ed493027
Commit: d7c4483a3f4a1d91b14e9e7d879f5039ed493027
Parent: 4198c45971a12d59ad565309acd63c46a6809ef6
Author: Shane Bradley <sbradley at redhat.com>
AuthorDate: Wed Jan 26 10:05:27 2011 -0500
Committer: Lon Hohberger <lhh at redhat.com>
CommitterDate: Tue Feb 15 15:54:22 2011 -0500
rgmanager: Fix nofailback when service is in 'starting' state
If a failover domain has "nofailback" enabled a service that is
"starting" state would still failback to the original. If a
service takes a while to come up and is in the "starting" state
and the original node comes back online while it is in that state
the service will be failed back.
Resolves: rhbz#669440
Signed-off-by: Shane Bradley <sbradley at redhat.com>
Signed-off-by: Lon Hohberger <lhh at redhat.com>
---
rgmanager/src/daemons/fo_domain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rgmanager/src/daemons/fo_domain.c b/rgmanager/src/daemons/fo_domain.c
index d8d074f..677a859 100644
--- a/rgmanager/src/daemons/fo_domain.c
+++ b/rgmanager/src/daemons/fo_domain.c
@@ -549,7 +549,7 @@ node_should_start(int nodeid, cluster_member_list_t *membership,
* Check to see if the service is started and if we are the owner in case of
* restricted+owner+no failback
*/
- if (svc_state.rs_state == RG_STATE_STARTED)
+ if (svc_state.rs_state == RG_STATE_STARTED || svc_state.rs_state == RG_STATE_STARTING)
started = 1;
if (svc_state.rs_owner == (uint32_t)nodeid)
owned_by_node = 1;
More information about the cluster-commits
mailing list