ARTEMIS-2197 Page deleted before transaction finishes

Fixed regression caused by previous commit
b36dc37c15
This commit is contained in:
Howard Gao 2018-12-13 20:17:14 +08:00
parent 3d1195455a
commit 2bd8fa7c5d
1 changed files with 6 additions and 6 deletions

View File

@ -132,16 +132,16 @@ public class RefsOperation extends TransactionOperationAbstract {
message.incrementRefCount();
}
ackedTX.commit(true);
} catch (Exception e) {
ActiveMQServerLogger.LOGGER.failedToProcessMessageReferenceAfterRollback(e);
}
}
if (pagedMessagesToPostACK != null) {
for (MessageReference refmsg : pagedMessagesToPostACK) {
((PagedReference)refmsg).removePendingFlag();
}
}
} catch (Exception e) {
ActiveMQServerLogger.LOGGER.failedToProcessMessageReferenceAfterRollback(e);
}
}
}
protected void rollbackRedelivery(Transaction tx, MessageReference ref, long timeBase, Map<QueueImpl, LinkedList<MessageReference>> queueMap) throws Exception {