Author: kgiusti
Date: Tue Mar 13 20:08:42 2012
New Revision: 1300328

URL: http://svn.apache.org/viewvc?rev=1300328&view=rev
Log:
QPID-3890: fix counting error for transactional messages

Modified:
    qpid/branches/qpid-3890/qpid/cpp/src/qpid/broker/Queue.cpp

Modified: qpid/branches/qpid-3890/qpid/cpp/src/qpid/broker/Queue.cpp
URL: 
http://svn.apache.org/viewvc/qpid/branches/qpid-3890/qpid/cpp/src/qpid/broker/Queue.cpp?rev=1300328&r1=1300327&r2=1300328&view=diff
==============================================================================
--- qpid/branches/qpid-3890/qpid/cpp/src/qpid/broker/Queue.cpp (original)
+++ qpid/branches/qpid-3890/qpid/cpp/src/qpid/broker/Queue.cpp Tue Mar 13 
20:08:42 2012
@@ -1033,7 +1033,9 @@ bool Queue::dequeue(TransactionContext* 
         }
     }
 
-    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.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to