Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 28648 invoked from network); 24 Nov 2010 15:16:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Nov 2010 15:16:14 -0000 Received: (qmail 11321 invoked by uid 500); 24 Nov 2010 15:16:45 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 11248 invoked by uid 500); 24 Nov 2010 15:16:45 -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 11241 invoked by uid 99); 24 Nov 2010 15:16:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 15:16:44 +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; Wed, 24 Nov 2010 15:16:42 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0CB08238890D; Wed, 24 Nov 2010 15:15:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038641 - /activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp Date: Wed, 24 Nov 2010 15:15:09 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101124151510.0CB08238890D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Wed Nov 24 15:15:09 2010 New Revision: 1038641 URL: http://svn.apache.org/viewvc?rev=1038641&view=rev Log: fix for: https://issues.apache.org/activemq/browse/AMQCPP-335 Modified: activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp Modified: activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp?rev=1038641&r1=1038640&r2=1038641&view=diff ============================================================================== --- activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp (original) +++ activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp Wed Nov 24 15:15:09 2010 @@ -909,7 +909,7 @@ void ActiveMQConsumer::rollback() throw( } if( this->redeliveryPolicy->getMaximumRedeliveries() != RedeliveryPolicy::NO_MAXIMUM_REDELIVERIES && - lastMsg->getRedeliveryCounter() > this->redeliveryPolicy->getMaximumRedeliveries() ) { + lastMsg->getMessage()->getRedeliveryCounter() > this->redeliveryPolicy->getMaximumRedeliveries() ) { // We need to NACK the messages so that they get sent to the DLQ. // Acknowledge the last message.