diff options
author | Christine Caulfield <ccaulfie@redhat.com> | 2008-06-20 12:46:21 +0000 |
---|---|---|
committer | Christine Caulfield <ccaulfie@redhat.com> | 2008-06-20 12:46:21 +0000 |
commit | ab5f66c13a0bc4dd23c8f5edfd26e15cd8cca11f (patch) | |
tree | 8b52f517f0b8a0d32ca79a851f01850ffacb996d /daemons | |
parent | e65ffb8e687bbce4e7edff70ebff2b3f1c0b6157 (diff) | |
download | lvm2-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.c | 5 |
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 */ |