brusdev commented on code in PR #5847:
URL: https://github.com/apache/activemq-artemis/pull/5847#discussion_r2242588746


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java:
##########
@@ -494,8 +488,11 @@ private static boolean matchBinding(final Message message,
          return false;
       }
 
-      final Filter filter = binding.getFilter();
+      if (CompositeAddress.isFullyQualified(message.getAddress()) && 
!binding.getClusterName().startsWith(CompositeAddress.extractQueueName(message.getAddressSimpleString())))
 {

Review Comment:
   Does this check work for 2 queues with names starting the same way, i.e. 
`myQueue` `myQueue1`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to