activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1342469 - /activemq/activemq-cpp/branches/activemq-cpp-3.4.x/activemq-cpp/src/main/activemq/state/SessionState.cpp
Date Thu, 24 May 2012 22:43:33 GMT
Author: tabish
Date: Thu May 24 22:43:33 2012
New Revision: 1342469

URL: http://svn.apache.org/viewvc?rev=1342469&view=rev
Log:
additional fix for: https://issues.apache.org/jira/browse/AMQCPP-403

Modified:
    activemq/activemq-cpp/branches/activemq-cpp-3.4.x/activemq-cpp/src/main/activemq/state/SessionState.cpp

Modified: activemq/activemq-cpp/branches/activemq-cpp-3.4.x/activemq-cpp/src/main/activemq/state/SessionState.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-3.4.x/activemq-cpp/src/main/activemq/state/SessionState.cpp?rev=1342469&r1=1342468&r2=1342469&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-3.4.x/activemq-cpp/src/main/activemq/state/SessionState.cpp
(original)
+++ activemq/activemq-cpp/branches/activemq-cpp-3.4.x/activemq-cpp/src/main/activemq/state/SessionState.cpp
Thu May 24 22:43:33 2012
@@ -69,11 +69,10 @@ Pointer<ProducerState> SessionState::rem
 
     Pointer<ProducerState> producerState = producers.remove(id);
 	if (producerState != NULL) {
-		Pointer<TransactionState> txState = producerState->getTransactionState();
-		if (txState != NULL) {
+		Pointer<TransactionState> transactionState = producerState->getTransactionState();
+		if (transactionState != NULL) {
 			producerState->setTransactionState(Pointer<TransactionState>());
-			// allow the transaction to recreate dependent producer on recovery
-			producerState->getTransactionState()->addProducerState(producerState);
+			transactionState->addProducerState(producerState);
 		}
 	}
 



Mime
View raw message