summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Cluster.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-12-19 17:22:52 +0000
committerAlan Conway <aconway@apache.org>2008-12-19 17:22:52 +0000
commit7540027fdc97962e97a69f775aceca7f80f67f33 (patch)
treee46e3cd482abe01c99aa6c9dc343b4d94b978399 /cpp/src/qpid/cluster/Cluster.cpp
parentfe1c7af8fb35c0cca7ffbb88d581b795850cdde8 (diff)
downloadqpid-python-7540027fdc97962e97a69f775aceca7f80f67f33.tar.gz
cluster: Increase initial estimate controlling writes.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@728072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.cpp')
-rw-r--r--cpp/src/qpid/cluster/Cluster.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp
index aac5bc1dd8..dd9de68bf5 100644
--- a/cpp/src/qpid/cluster/Cluster.cpp
+++ b/cpp/src/qpid/cluster/Cluster.cpp
@@ -83,7 +83,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 quorum_, size_t readMax_) :
+Cluster::Cluster(const std::string& name_, const Url& url_, broker::Broker& b, bool quorum_, size_t readMax_, size_t writeEstimate_) :
broker(b),
poller(b.getPoller()),
cpg(*this),
@@ -91,6 +91,7 @@ Cluster::Cluster(const std::string& name_, const Url& url_, broker::Broker& b, b
myUrl(url_),
myId(cpg.self()),
readMax(readMax_),
+ writeEstimate(writeEstimate_),
cpgDispatchHandle(
cpg,
boost::bind(&Cluster::dispatch, this, _1), // read