From d1b5029dc6100d7996b19ced959b4ae12bfaa8c5 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Sun, 27 Jun 2010 06:07:02 +0000 Subject: [PATCH] Remove the need to check if the store is empty when checking to enable cache git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@958330 13f79535-47bb-0310-9956-ffa450edef68 --- .../activemq/broker/region/cursors/AbstractStoreCursor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java index ec6fb0dd79..63cefd23a9 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java @@ -208,7 +208,7 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i if (last != null) { last.decrementReferenceCount(); } - if (size==0 && isStarted() && useCache && hasSpace() && isStoreEmpty()) { + if (size==0 && isStarted() && useCache && hasSpace() ) { if (LOG.isDebugEnabled()) { LOG.debug(regionDestination.getActiveMQDestination().getPhysicalName() + " enabling cache on last remove"); }