mirror of
https://github.com/apache/activemq.git
synced 2025-02-15 14:36:59 +00:00
Revert "AMQ-6947 - Make sure counters are updated correct on message drop"
This reverts commit 021c82859cf4361eb31b21fdbac17655ae9e368d.
This commit is contained in:
parent
7123534e1b
commit
1d2226e6cf
@ -1869,12 +1869,11 @@ public class Queue extends BaseDestination implements Task, UsageListener, Index
|
||||
private void dropMessage(QueueMessageReference reference) {
|
||||
//use dropIfLive so we only process the statistics at most one time
|
||||
if (reference.dropIfLive()) {
|
||||
getDestinationStatistics().getDequeues().increment();
|
||||
getDestinationStatistics().getMessages().decrement();
|
||||
pagedInMessagesLock.writeLock().lock();
|
||||
try {
|
||||
if (pagedInMessages.remove(reference) != null) {
|
||||
getDestinationStatistics().getDequeues().increment();
|
||||
getDestinationStatistics().getMessages().decrement();
|
||||
}
|
||||
pagedInMessages.remove(reference);
|
||||
} finally {
|
||||
pagedInMessagesLock.writeLock().unlock();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user