From commits-return-10854-apmail-activemq-commits-archive=activemq.apache.org@activemq.apache.org Fri May 22 14:16:04 2009 Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 92669 invoked from network); 22 May 2009 14:16:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 May 2009 14:16:04 -0000 Received: (qmail 45770 invoked by uid 500); 22 May 2009 14:00:26 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 45747 invoked by uid 500); 22 May 2009 14:00:26 -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 45737 invoked by uid 99); 22 May 2009 14:00:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 14:00:26 +0000 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; Fri, 22 May 2009 14:00:24 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7FFE2238888E; Fri, 22 May 2009 14:00:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r777527 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicSubscription.java Date: Fri, 22 May 2009 14:00:04 -0000 To: commits@activemq.apache.org From: gtully@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090522140004.7FFE2238888E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gtully Date: Fri May 22 14:00:04 2009 New Revision: 777527 URL: http://svn.apache.org/viewvc?rev=777527&view=rev Log: help with https://issues.apache.org/activemq/browse/AMQ-2262 when messages are discarded broker side Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicSubscription.java Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicSubscription.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicSubscription.java?rev=777527&r1=777526&r2=777527&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicSubscription.java (original) +++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicSubscription.java Fri May 22 14:00:04 2009 @@ -441,10 +441,8 @@ message.decrementReferenceCount(); matched.remove(message); discarded++; - dequeueCounter.incrementAndGet(); if(destination != null) { destination.getDestinationStatistics().getDequeues().increment(); - destination.getDestinationStatistics().getInflight().decrement(); } if (LOG.isDebugEnabled()) { LOG.debug("Discarding message " + message);