diff options
| author | Ted Ross <tross@apache.org> | 2008-12-02 12:56:48 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2008-12-02 12:56:48 +0000 |
| commit | 92dacb46fd1c2ce00d4509f72c53bd04d2efd49a (patch) | |
| tree | 0ba294710e13d8a2f301f51c97b5e6edc7368a02 /qpid/cpp/src | |
| parent | 8acb6644fe0d3b5aeff311d3b2a1c6e6b556bcc6 (diff) | |
| download | qpid-python-92dacb46fd1c2ce00d4509f72c53bd04d2efd49a.tar.gz | |
Added management accounting for transaction dequeues.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@722446 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Queue.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/Queue.cpp b/qpid/cpp/src/qpid/broker/Queue.cpp index 163c471286..22659ec26c 100644 --- a/qpid/cpp/src/qpid/broker/Queue.cpp +++ b/qpid/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()); + } } /** |
