summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-04-16 17:11:48 +0100
committerMatthew Sackman <matthew@lshift.net>2010-04-16 17:11:48 +0100
commit092187dee9b4cb5c5c86bf38eb4d1d4a13978dbb (patch)
treec5517653516d11c881c5b99c1965a08003aaa091 /src
parentaf028953deb139b92a1cdaa455dae927a25b69cf (diff)
downloadrabbitmq-server-git-092187dee9b4cb5c5c86bf38eb4d1d4a13978dbb.tar.gz
set channel txn to none on rollback
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_amqqueue_process.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 5fda693524..f6d3d1a517 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -481,11 +481,12 @@ commit_transaction(Txn, From, ChPid, State = #q{backing_queue = BQ,
end,
State#q{backing_queue_state = BQS1}.
-rollback_transaction(Txn, _ChPid, State = #q{backing_queue = BQ,
+rollback_transaction(Txn, ChPid, State = #q{backing_queue = BQ,
backing_queue_state = BQS}) ->
{_AckTags, BQS1} = BQ:tx_rollback(Txn, BQS),
%% Iff we removed acktags from the channel record on ack+txn then
%% we would add them back in here (would also require ChPid)
+ record_current_channel_tx(ChPid, none),
State#q{backing_queue_state = BQS1}.
collect_messages(AckTags, UAM) ->