Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 12920 invoked from network); 4 Sep 2008 17:53:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2008 17:53:29 -0000 Received: (qmail 87165 invoked by uid 500); 4 Sep 2008 17:53:27 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 87113 invoked by uid 500); 4 Sep 2008 17:53:27 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 87104 invoked by uid 99); 4 Sep 2008 17:53:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 10:53:27 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 17:52:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B8202238899B; Thu, 4 Sep 2008 10:52:38 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r692174 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java Date: Thu, 04 Sep 2008 17:52:38 -0000 To: commits@activemq.apache.org From: rajdavies@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080904175238.B8202238899B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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(); }