You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2021/04/13 12:58:27 UTC

[activemq-artemis] branch main updated: ARTEMIS-3238 Fixing SendACKFailTest after d408f284b171c361000a0a3876da3a155a8b5255

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new ac4eb69  ARTEMIS-3238 Fixing SendACKFailTest after d408f284b171c361000a0a3876da3a155a8b5255
ac4eb69 is described below

commit ac4eb693b2a330993c7c6c466967bed246d4445c
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Tue Apr 13 08:49:17 2021 -0400

    ARTEMIS-3238 Fixing SendACKFailTest after d408f284b171c361000a0a3876da3a155a8b5255
---
 .../apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
index a4c2605..95e2b7e 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
@@ -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);