summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/Exchange.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-06-26 17:52:25 +0000
committerGordon Sim <gsim@apache.org>2013-06-26 17:52:25 +0000
commitd31b45cc158704e40f3ccd8ea6d3731800464ec6 (patch)
tree2243b9da7f8973be97edcf071e80a9fe12c6ea54 /cpp/src/qpid/broker/Exchange.cpp
parente7370b4a00ffa4a04aaddb99da13360609d11699 (diff)
downloadqpid-python-d31b45cc158704e40f3ccd8ea6d3731800464ec6.tar.gz
QPID-4950: ensure exchange stats are updated with correct content size for messages
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1497024 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Exchange.cpp')
-rw-r--r--cpp/src/qpid/broker/Exchange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/Exchange.cpp b/cpp/src/qpid/broker/Exchange.cpp
index f8a69c4451..b9080cdda5 100644
--- a/cpp/src/qpid/broker/Exchange.cpp
+++ b/cpp/src/qpid/broker/Exchange.cpp
@@ -135,7 +135,7 @@ void Exchange::doRoute(Deliverable& msg, ConstBindingList b)
if (mgmtExchange != 0)
{
qmf::org::apache::qpid::broker::Exchange::PerThreadStats *eStats = mgmtExchange->getStatistics();
- uint64_t contentSize = msg.contentSize();
+ uint64_t contentSize = msg.getMessage().getContentSize();
eStats->msgReceives += 1;
eStats->byteReceives += contentSize;