You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2012/03/13 21:08:42 UTC

svn commit: r1300328 - /qpid/branches/qpid-3890/qpid/cpp/src/qpid/broker/Queue.cpp

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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org