Skip to content

Commit

Permalink
ARTEMIS-2197 Page deleted before transaction finishes
Browse files Browse the repository at this point in the history
Fixed regression caused by previous commit
b36dc37

(cherry picked from 2bd8fa7)
  • Loading branch information
howardgao authored and clebertsuconic committed Dec 17, 2018
1 parent b0a14ff commit 8a2f65c
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -132,16 +132,16 @@ public void afterRollback(final Transaction tx) {
message.incrementRefCount();
}
ackedTX.commit(true);

if (pagedMessagesToPostACK != null) {
for (MessageReference refmsg : pagedMessagesToPostACK) {
((PagedReference)refmsg).removePendingFlag();
}
}
} catch (Exception e) {
ActiveMQServerLogger.LOGGER.failedToProcessMessageReferenceAfterRollback(e);
}
}

if (pagedMessagesToPostACK != null) {
for (MessageReference refmsg : pagedMessagesToPostACK) {
((PagedReference)refmsg).removePendingFlag();
}
}
}

protected void rollbackRedelivery(Transaction tx, MessageReference ref, long timeBase, Map<QueueImpl, LinkedList<MessageReference>> queueMap) throws Exception {
Expand Down

0 comments on commit 8a2f65c

Please sign in to comment.