From cccb83debcb65daa8600b6c898167904f3d15555 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 02 Jul 2015 15:34:31 +0000
Subject: [PATCH] OPENDJ-2183 ECL: changes for new suffix are missing OPENDJ-2184 ECL: wrong number of changes after adding a new replica
---
opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/Log.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/Log.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/Log.java
index d503cb3..90b7d8c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/Log.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/Log.java
@@ -604,8 +604,9 @@
}
cursor = new AbortableLogCursor<K, V>(this, new InternalLogCursor<K, V>(this));
final boolean isSuccessfullyPositioned = cursor.positionTo(key, matchingStrategy, positionStrategy);
- // Allow for cursor re-initialization after exhaustion in case of GREATER_THAN_OR_EQUAL_TO_KEY strategy
- if (isSuccessfullyPositioned || matchingStrategy == GREATER_THAN_OR_EQUAL_TO_KEY)
+ // Allow for cursor re-initialization after exhaustion in case of
+ // LESS_THAN_OR_EQUAL_TO_KEY ands GREATER_THAN_OR_EQUAL_TO_KEY strategies
+ if (isSuccessfullyPositioned || matchingStrategy != EQUAL_TO_KEY)
{
registerCursor(cursor);
return cursor;
@@ -627,7 +628,6 @@
}
}
-
/**
* Returns the oldest (first) record from this log.
*
--
Gitblit v1.10.0