summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-09-11 20:42:58 +0000
committerAlan Conway <aconway@apache.org>2009-09-11 20:42:58 +0000
commite7b92de53469c1667bec948042dfbf3cc693f499 (patch)
tree971776a6681bfe2bb75488bd1a9f23e7abb93f60 /qpid/cpp/src
parent94a8e4beed2f2f42f357b445deba27a2b1e1329b (diff)
downloadqpid-python-e7b92de53469c1667bec948042dfbf3cc693f499.tar.gz
Fix incorrect test for quorum status.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@814021 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/cluster/Quorum_cman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp b/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp
index 277adaf7b1..9878388327 100644
--- a/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp
+++ b/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp
@@ -34,7 +34,7 @@ namespace {
boost::function<void()> errorFn;
void cmanCallbackFn(cman_handle_t handle, void */*privdata*/, int reason, int arg) {
- if (reason == CMAN_REASON_STATECHANGE && arg == 0) {
+ if (reason == CMAN_REASON_STATECHANGE && !cman_is_quorate(handle)) {
QPID_LOG(critical, "Lost contact with cluster quorum.");
if (errorFn) errorFn();
cman_stop_notification(handle);