mirror of https://github.com/apache/activemq.git
AMQ-6707 - ensure trace logging does not flip cacheEnabled flag outside required sync
This commit is contained in:
parent
365c1bbe9a
commit
09bf8f89b8
|
@ -45,7 +45,7 @@ public abstract class AbstractPendingMessageCursor implements PendingMessageCurs
|
|||
protected boolean enableAudit=true;
|
||||
protected ActiveMQMessageAudit audit;
|
||||
protected boolean useCache=true;
|
||||
private boolean cacheEnabled=true;
|
||||
protected boolean cacheEnabled=true;
|
||||
private boolean started=false;
|
||||
protected MessageReference last = null;
|
||||
protected final boolean prioritizedMessages;
|
||||
|
|
|
@ -490,7 +490,7 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i
|
|||
@Override
|
||||
public String toString() {
|
||||
return super.toString() + ":" + regionDestination.getActiveMQDestination().getPhysicalName() + ",batchResetNeeded=" + batchResetNeeded
|
||||
+ ",size=" + this.size + ",cacheEnabled=" + isCacheEnabled()
|
||||
+ ",size=" + this.size + ",cacheEnabled=" + cacheEnabled
|
||||
+ ",maxBatchSize:" + maxBatchSize + ",hasSpace:" + hasSpace() + ",pendingCachedIds.size:" + pendingCachedIds.size()
|
||||
+ ",lastSyncCachedId:" + lastCachedIds[SYNC_ADD] + ",lastSyncCachedId-seq:" + (lastCachedIds[SYNC_ADD] != null ? lastCachedIds[SYNC_ADD].getFutureOrSequenceLong() : "null")
|
||||
+ ",lastAsyncCachedId:" + lastCachedIds[ASYNC_ADD] + ",lastAsyncCachedId-seq:" + (lastCachedIds[ASYNC_ADD] != null ? lastCachedIds[ASYNC_ADD].getFutureOrSequenceLong() : "null");
|
||||
|
|
Loading…
Reference in New Issue