activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1038642 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp
Date Wed, 24 Nov 2010 15:15:40 GMT
Author: tabish
Date: Wed Nov 24 15:15:38 2010
New Revision: 1038642

URL: http://svn.apache.org/viewvc?rev=1038642&view=rev
Log:
fix for: https://issues.apache.org/activemq/browse/AMQCPP-335

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp?rev=1038642&r1=1038641&r2=1038642&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp Wed
Nov 24 15:15:38 2010
@@ -970,7 +970,7 @@ void ActiveMQConsumer::rollback() {
             }
 
             if( this->internal->redeliveryPolicy->getMaximumRedeliveries() != RedeliveryPolicy::NO_MAXIMUM_REDELIVERIES
&&
-                lastMsg->getRedeliveryCounter() > this->internal->redeliveryPolicy->getMaximumRedeliveries()
) {
+                lastMsg->getMessage()->getRedeliveryCounter() > this->internal->redeliveryPolicy->getMaximumRedeliveries()
) {
 
                 // We need to NACK the messages so that they get sent to the DLQ.
                 // Acknowledge the last message.



Mime
View raw message