mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
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
This commit is contained in:
parent
dd48ebea00
commit
d1b5029dc6
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user