You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ra...@apache.org on 2008/08/31 08:51:28 UTC
svn commit: r690645 -
/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
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++;