https://issues.apache.org/jira/browse/AMQ-3474 - flush only if we have some non-persistent messages

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1162063 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2011-08-26 11:12:36 +00:00
parent 86dc4d5c34
commit 4f50d25a22
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ public class FilePendingMessageCursor extends AbstractPendingMessageCursor imple
public void onUsageChanged(Usage usage, int oldPercentUsage, int newPercentUsage) {
if (newPercentUsage >= getMemoryUsageHighWaterMark()) {
synchronized (this) {
if (!flushRequired) {
if (!flushRequired && size() != 0) {
flushRequired =true;
if (!iterating) {
expireOldMessages();