summaryrefslogtreecommitdiff
path: root/cpp
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
commita8628ff91331768d9564d5e0660be1f0b7c69ed8 (patch)
tree9e7d4300ff8f2b650a87ed64efd0157177665662 /cpp
parent8be19101e65ccc0808b0a5fff3adb16039eddf7e (diff)
downloadqpid-python-a8628ff91331768d9564d5e0660be1f0b7c69ed8.tar.gz
Fix incorrect test for quorum status.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@814021 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/cluster/Quorum_cman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Quorum_cman.cpp b/cpp/src/qpid/cluster/Quorum_cman.cpp
index 277adaf7b1..9878388327 100644
--- a/cpp/src/qpid/cluster/Quorum_cman.cpp
+++ b/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);