mirror of https://github.com/apache/activemq.git
[AMQ-6678] sync destructive purge on queue view mbean (jmx) to prevent concurrent calls
This commit is contained in:
parent
30d3162982
commit
00ee9491d9
|
@ -56,7 +56,7 @@ public class QueueView extends DestinationView implements QueueViewMBean {
|
|||
return result;
|
||||
}
|
||||
|
||||
public void purge() throws Exception {
|
||||
public synchronized void purge() throws Exception {
|
||||
final long originalMessageCount = destination.getDestinationStatistics().getMessages().getCount();
|
||||
|
||||
((Queue)destination).purge();
|
||||
|
|
Loading…
Reference in New Issue