From c1e7dbd53bfefd8fad42d397800386048701e61d Mon Sep 17 00:00:00 2001 From: gtully Date: Wed, 9 May 2018 12:17:29 +0100 Subject: [PATCH] AMQ-6707 - fix trace log reporting in error --- .../activemq/broker/region/cursors/AbstractStoreCursor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java b/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java index b5c560baa3..03b412f26c 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java @@ -384,7 +384,7 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i } else if (candidateOrSequenceLong != null && Long.compare(((Long) candidateOrSequenceLong), ((Long) lastCacheFutureOrSequenceLong)) > 0) { lastCachedIds[index] = candidate; - } if (LOG.isTraceEnabled()) { + } else if (LOG.isTraceEnabled()) { LOG.trace("no set last cached[" + index + "] current:" + lastCacheFutureOrSequenceLong + " <= than candidate: " + candidateOrSequenceLong+ ", " + this); } }