You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/05/25 00:43:33 UTC
svn commit: r1342469 -
/activemq/activemq-cpp/branches/activemq-cpp-3.4.x/activemq-cpp/src/main/activemq/state/SessionState.cpp
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);
}
}