[AMQ-6703] check for enable audit false

This commit is contained in:
gtully 2017-06-15 11:22:20 +01:00
parent 99f3d4c505
commit df3bd83c0d
1 changed files with 3 additions and 1 deletions

View File

@ -1280,7 +1280,9 @@ public class Queue extends BaseDestination implements Task, UsageListener, Index
// store // store
} while (!list.isEmpty() && this.destinationStatistics.getMessages().getCount() > 0); } while (!list.isEmpty() && this.destinationStatistics.getMessages().getCount() > 0);
getMessages().getMessageAudit().clear(); if (getMessages().getMessageAudit() != null) {
getMessages().getMessageAudit().clear();
}
if (this.destinationStatistics.getMessages().getCount() > 0) { if (this.destinationStatistics.getMessages().getCount() > 0) {
LOG.warn("{} after purge of {} messages, message count stats report: {}", getActiveMQDestination().getQualifiedName(), originalMessageCount, this.destinationStatistics.getMessages().getCount()); LOG.warn("{} after purge of {} messages, message count stats report: {}", getActiveMQDestination().getQualifiedName(), originalMessageCount, this.destinationStatistics.getMessages().getCount());