summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorChristine Caulfield <ccaulfie@redhat.com>2008-06-20 12:46:21 +0000
committerChristine Caulfield <ccaulfie@redhat.com>2008-06-20 12:46:21 +0000
commitab5f66c13a0bc4dd23c8f5edfd26e15cd8cca11f (patch)
tree8b52f517f0b8a0d32ca79a851f01850ffacb996d /daemons
parente65ffb8e687bbce4e7edff70ebff2b3f1c0b6157 (diff)
downloadlvm2-ab5f66c13a0bc4dd23c8f5edfd26e15cd8cca11f.tar.gz
Make clvmd return immediately if other nodes are down in an openais cluster.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/clvmd/clvmd-openais.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemons/clvmd/clvmd-openais.c b/daemons/clvmd/clvmd-openais.c
index 2725b5e84..253980ac1 100644
--- a/daemons/clvmd/clvmd-openais.c
+++ b/daemons/clvmd/clvmd-openais.c
@@ -452,6 +452,7 @@ static int _cluster_do_node_callback(struct local_client *master_client,
{
struct dm_hash_node *hn;
struct node_info *ninfo;
+ int somedown = 0;
dm_hash_iterate(hn, node_hash)
{
@@ -465,8 +466,10 @@ static int _cluster_do_node_callback(struct local_client *master_client,
if (ninfo->state != NODE_DOWN)
callback(master_client, csid, ninfo->state == NODE_CLVMD);
+ if (ninfo->state != NODE_CLVMD)
+ somedown = -1;
}
- return 0;
+ return somedown;
}
/* Real locking */