Author: pmoravec
Date: Mon Oct 13 14:00:56 2014
New Revision: 1631396

URL: http://svn.apache.org/r1631396
Log:
QPID-6148: purging TTL expired messages via purge task should not increase 
acquires counters

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp?rev=1631396&r1=1631395&r2=1631396&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp Mon Oct 13 14:00:56 2014
@@ -646,10 +646,8 @@ void Queue::purgeExpired(sys::Duration l
         // Report the count of discarded-by-ttl messages
         //
         if (mgmtObject && count) {
-            mgmtObject->inc_acquires(count);
             mgmtObject->inc_discardsTtl(count);
             if (brokerMgmtObject) {
-                brokerMgmtObject->inc_acquires(count);
                 brokerMgmtObject->inc_discardsTtl(count);
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to