diff options
| author | Alan Conway <aconway@apache.org> | 2009-08-06 17:41:18 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-08-06 17:41:18 +0000 |
| commit | 1af1e0114b71a366dc78a47c3d63833f1a0b4c8a (patch) | |
| tree | 85488c593a8d165641d45035d16a78ae402fbdea /cpp/src/qpid/cluster/Quorum_null.h | |
| parent | 7ffe1a63bfdbf071ca4e3b1f31e66182caa90873 (diff) | |
| download | qpid-python-1af1e0114b71a366dc78a47c3d63833f1a0b4c8a.tar.gz | |
Fix cman integration to exit immediately on loss of quorum.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801740 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Quorum_null.h')
| -rw-r--r-- | cpp/src/qpid/cluster/Quorum_null.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/Quorum_null.h b/cpp/src/qpid/cluster/Quorum_null.h index cbb6c20708..dc27f0a43b 100644 --- a/cpp/src/qpid/cluster/Quorum_null.h +++ b/cpp/src/qpid/cluster/Quorum_null.h @@ -21,15 +21,20 @@ * under the License. * */ + +#include <boost/shared_ptr.hpp> +#include <boost/function.hpp> + namespace qpid { namespace cluster { +class Cluster; /** Null implementation of quorum. */ class Quorum { public: - void init() {} - bool isQuorate() { return true; } + Quorum(boost::function<void ()>) {} + void start(boost::shared_ptr<sys::Poller>) {} }; #endif /*!QPID_CLUSTER_QUORUM_NULL_H*/ |
