summaryrefslogtreecommitdiff
path: root/cpp/src/qpid
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
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')
-rw-r--r--cpp/src/qpid/broker/Deliverable.h1
-rw-r--r--cpp/src/qpid/broker/Exchange.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Deliverable.h b/cpp/src/qpid/broker/Deliverable.h
index e08d0e1b20..4dc67fdcfc 100644
--- a/cpp/src/qpid/broker/Deliverable.h
+++ b/cpp/src/qpid/broker/Deliverable.h
@@ -38,7 +38,6 @@ namespace qpid {
virtual Message& getMessage() = 0;
virtual void deliverTo(const boost::shared_ptr<Queue>& queue) = 0;
- virtual uint64_t contentSize() { return 0; }
virtual ~Deliverable(){}
};
}
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;