mattrpav commented on code in PR #1662:
URL: https://github.com/apache/activemq/pull/1662#discussion_r3031115413
##########
activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java:
##########
@@ -1313,9 +1313,15 @@ public QueueMessageReference getMessage(String id) {
}
public void purge() throws Exception {
+ purge(this.destinationStatistics.getMessages().getCount());
+ }
+
+ public void purge(long numberOfMessages) throws Exception {
ConnectionContext c = createConnectionContext();
List<MessageReference> list = null;
sendLock.lock();
+
+ long purgeCount = 0L;
try {
long originalMessageCount =
this.destinationStatistics.getMessages().getCount();
Review Comment:
I now use the originalMessageCount in a log message further down.
(see latest updated commit)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact