clebertsuconic commented on a change in pull request #3374:
URL: https://github.com/apache/activemq-artemis/pull/3374#discussion_r538893095



##########
File path: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
##########
@@ -2140,6 +2140,7 @@ private int iterQueue(final int flushLimit,
                                       QueueIterateAction messageAction) throws 
Exception {
       int count = 0;
       int txCount = 0;
+      Integer expectedHits = messageAction.expectedHits();

Review comment:
       QueueControl.expire with a messageID will only expire a single record, 
however the iteration will go until the end. it's sort of an optimization.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to