diff options
author | Alan Conway <aconway@apache.org> | 2008-12-09 20:08:47 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-12-09 20:08:47 +0000 |
commit | 854d7472c441248cefa783a34606c5ba8bf053ec (patch) | |
tree | 404ac91e8412032112db368175c61fe1b97942f5 /cpp/src/qpid/cluster/Cluster.cpp | |
parent | f2bec6c366dc14c9a24dd753adaf798503e87e2e (diff) | |
download | qpid-python-854d7472c441248cefa783a34606c5ba8bf053ec.tar.gz |
Cluster: Option --cluster-read-max configures read-to-redeliver flow-control.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@724857 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Cluster.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp index 602933b88b..8d9b5a1864 100644 --- a/cpp/src/qpid/cluster/Cluster.cpp +++ b/cpp/src/qpid/cluster/Cluster.cpp @@ -85,7 +85,7 @@ struct ClusterDispatcher : public framing::AMQP_AllOperations::ClusterHandler { bool invoke(AMQBody& body) { return framing::invoke(*this, body).wasHandled(); } }; -Cluster::Cluster(const std::string& name_, const Url& url_, broker::Broker& b, bool useQuorum) : +Cluster::Cluster(const std::string& name_, const Url& url_, broker::Broker& b, bool quorum_, size_t readMax_) : broker(b), poller(b.getPoller()), cpg(*this), @@ -104,7 +104,8 @@ Cluster::Cluster(const std::string& name_, const Url& url_, broker::Broker& b, b mgmtObject(0), state(INIT), lastSize(0), - lastBroker(false) + lastBroker(false), + readMax(readMax_) { ManagementAgent* agent = ManagementAgent::Singleton::getInstance(); if (agent != 0){ @@ -119,7 +120,7 @@ Cluster::Cluster(const std::string& name_, const Url& url_, broker::Broker& b, b deliverQueue.start(); mcastQueue.start(); QPID_LOG(notice, *this << " joining cluster " << name << " with url=" << myUrl); - if (useQuorum) quorum.init(); + if (quorum_) quorum.init(); cpg.join(name); broker.addFinalizer(boost::bind(&Cluster::brokerShutdown, this)); // Must be last for exception safety. } |