qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r814021 - /qpid/trunk/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp
Date Fri, 11 Sep 2009 20:43:00 GMT
Author: aconway
Date: Fri Sep 11 20:42:58 2009
New Revision: 814021

URL: http://svn.apache.org/viewvc?rev=814021&view=rev
Log:
Fix incorrect test for quorum status.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp?rev=814021&r1=814020&r2=814021&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/cluster/Quorum_cman.cpp Fri Sep 11 20:42:58 2009
@@ -34,7 +34,7 @@
 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);



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message