summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-12-02 12:56:48 +0000
committerTed Ross <tross@apache.org>2008-12-02 12:56:48 +0000
commitb29a37f7a14c41592bd0b758d2b163492d3c99d2 (patch)
treed13be3fad778ff10379debfaee6186866eced8b3
parent006b0b803b15f6cffcde91271226c1767330e105 (diff)
downloadqpid-python-b29a37f7a14c41592bd0b758d2b163492d3c99d2.tar.gz
Added management accounting for transaction dequeues.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@722446 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/broker/Queue.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Queue.cpp b/cpp/src/qpid/broker/Queue.cpp
index 163c471286..22659ec26c 100644
--- a/cpp/src/qpid/broker/Queue.cpp
+++ b/cpp/src/qpid/broker/Queue.cpp
@@ -626,6 +626,10 @@ void Queue::dequeueCommitted(const QueuedMessage& msg)
{
Mutex::ScopedLock locker(messageLock);
dequeued(msg);
+ if (mgmtObject != 0) {
+ mgmtObject->inc_msgTxnDequeues();
+ mgmtObject->inc_byteTxnDequeues(msg.payload->contentSize());
+ }
}
/**