Author: rajdavies
Date: Thu Sep 4 10:52:38 2008
New Revision: 692174
URL: http://svn.apache.org/viewvc?rev=692174&view=rev
Log:
Applied patch for https://issues.apache.org/activemq/browse/AMQ-1900
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=692174&r1=692173&r2=692174&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
Thu Sep 4 10:52:38 2008
@@ -196,7 +196,9 @@
// Don't remove the nodes until we are committed.
if (!context.isInTransaction()) {
dequeueCounter++;
-
node.getRegionDestination().getDestinationStatistics().getDequeues().increment();
+ if (this.getConsumerInfo().isBrowser()) {
+
node.getRegionDestination().getDestinationStatistics().getDequeues().increment();
+ }
if (!isSlave()) {
node.getRegionDestination().getDestinationStatistics().getInflight().decrement();
}