activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r690645 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
Date Sun, 31 Aug 2008 06:51:28 GMT
Author: rajdavies
Date: Sat Aug 30 23:51:27 2008
New Revision: 690645

URL: http://svn.apache.org/viewvc?rev=690645&view=rev
Log:
Applied patch for https://issues.apache.org/activemq/browse/AMQ-1838

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java?rev=690645&r1=690644&r2=690645&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
Sat Aug 30 23:51:27 2008
@@ -218,6 +218,13 @@
                                                         .getDestinationStatistics()
                                                         .getDequeues()
                                                         .increment();
+
+                                                node
+                                                        .getRegionDestination()
+                                                        .getDestinationStatistics()
+                                                        .getInflight()
+                                                        .decrement();
+
                                                 prefetchExtension--;
                                             }
                                         }
@@ -354,6 +361,10 @@
                         sendToDLQ(context, node);
                         node.getRegionDestination().getDestinationStatistics()
                                 .getDequeues().increment();
+
+                        node.getRegionDestination().getDestinationStatistics()
+                                .getInflight().increment();
+
                         removeList.add(node);
                         dequeueCounter++;
                         index++;



Mime
View raw message