From a8628ff91331768d9564d5e0660be1f0b7c69ed8 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 11 Sep 2009 20:42:58 +0000 Subject: Fix incorrect test for quorum status. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@814021 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Quorum_cman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid') 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 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); -- cgit v1.2.1