ARTEMIS-3238 Fixing SendACKFailTest after d408f284b1

This commit is contained in:
Clebert Suconic 2021-04-13 08:49:17 -04:00
parent d408f284b1
commit ac4eb693b2
1 changed files with 1 additions and 1 deletions

View File

@ -1595,7 +1595,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
refs.add(reference);
queue.refUp(reference);
if (message.isDurable()) {
storeDurableReference(storageManager, message, tx, queue, durableQueuesCount == i);
storeDurableReference(storageManager, message, tx, queue, durableQueuesCount - 1 == i);
if (deliveryTime != null && deliveryTime > 0) {
if (tx != null) {
storageManager.updateScheduledDeliveryTimeTransactional(tx.getID(), reference);