summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/UpdateClient.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-05-26 21:41:52 +0000
committerAlan Conway <aconway@apache.org>2009-05-26 21:41:52 +0000
commit0c30ca90a6820dd152677c3c0966a6a20fd377bb (patch)
treed643b8ec8869d94c9baef34e64c884fff6656cab /cpp/src/qpid/cluster/UpdateClient.cpp
parent5ce2eb3ccdfe0b90436b6095b0498d59f9057de0 (diff)
downloadqpid-python-0c30ca90a6820dd152677c3c0966a6a20fd377bb.tar.gz
Improved doOutput algorithm.
Simpler & more robust algorithm based on message count rather than byte size. Self-tuning, removes 2 hard-to-explain cluster options. Similar or marginally better performance. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@778896 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/UpdateClient.cpp')
-rw-r--r--cpp/src/qpid/cluster/UpdateClient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/UpdateClient.cpp b/cpp/src/qpid/cluster/UpdateClient.cpp
index bb4df8890a..edd83463d2 100644
--- a/cpp/src/qpid/cluster/UpdateClient.cpp
+++ b/cpp/src/qpid/cluster/UpdateClient.cpp
@@ -253,7 +253,8 @@ void UpdateClient::updateConnection(const boost::intrusive_ptr<Connection>& upda
updateConnection->getId().getMember(),
updateConnection->getId().getNumber(),
bc.getUserId(),
- string(fragment.first, fragment.second)
+ string(fragment.first, fragment.second),
+ updateConnection->getOutput().getSendMax()
);
shadowConnection.close();
QPID_LOG(debug, updaterId << " updated connection " << *updateConnection);