This commit is contained in:
Justin Bertram 2020-02-03 09:51:49 -06:00
commit 41991e22e6
1 changed files with 1 additions and 4 deletions

View File

@ -2270,11 +2270,8 @@ public class QueueImpl extends CriticalComponentImpl implements Queue {
} }
if (!expiredMessages.isEmpty()) { if (!expiredMessages.isEmpty()) {
Transaction tx = new TransactionImpl(storageManager); final Transaction tx = new TransactionImpl(storageManager);
for (MessageReference ref : expiredMessages) { for (MessageReference ref : expiredMessages) {
if (tx == null) {
tx = new TransactionImpl(storageManager);
}
try { try {
expire(tx, ref); expire(tx, ref);
refRemoved(ref); refRemoved(ref);