mirror of
https://github.com/apache/activemq.git
synced 2025-02-27 20:59:06 +00:00
Revert "AMQ-6947 - Make sure counters are updated correct on message drop"
This reverts commit 1fe096cb2a3ec03dbf5a7aab05c0960f8c739339.
This commit is contained in:
parent
86fbf957e9
commit
79fae8c00b
@ -1839,12 +1839,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