diff options
author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2012-03-13 20:08:42 +0000 |
---|---|---|
committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2012-03-13 20:08:42 +0000 |
commit | 59ee66dabcb09c5a64f7338b5d4917f8a2522610 (patch) | |
tree | caece09f3c828023608d1092f6f776bb6dd93d36 | |
parent | d3b4f8da68fd6c95099476db7e6ab892d8509091 (diff) | |
download | qpid-python-59ee66dabcb09c5a64f7338b5d4917f8a2522610.tar.gz |
QPID-3890: fix counting error for transactional messages
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-3890@1300328 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/qpid/broker/Queue.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/Queue.cpp b/qpid/cpp/src/qpid/broker/Queue.cpp index 1116941c4f..111c47a861 100644 --- a/qpid/cpp/src/qpid/broker/Queue.cpp +++ b/qpid/cpp/src/qpid/broker/Queue.cpp @@ -1033,7 +1033,9 @@ bool Queue::dequeue(TransactionContext* ctxt, const QueuedMessage& msg) } } - mgntDeqStats(msg.payload, mgmtObject, brokerMgmtObject); + if (!ctxt) { + mgntDeqStats(msg.payload, mgmtObject, brokerMgmtObject); + } // This check prevents messages which have been forced persistent on one queue from dequeuing // from another on which no forcing has taken place and thus causing a store error. |