From 899a2d886b25770087baf5f64cc3be7cdc5c946d Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 04 Nov 2013 16:19:31 +0000
Subject: [PATCH] OPENDJ-1190 (CR-2523) Under rare circumstances the DS replication recovery thread (RSUpdater) can spin
---
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java b/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
index 8d8df2e..e536ea5 100644
--- a/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
+++ b/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
@@ -4504,7 +4504,9 @@
private static CSN now()
{
- return new CSN(TimeThread.getTime(), 0, 0);
+ // ensure now() will always come last with isNewerThan() test,
+ // even though the timestamp, or the timestamp and seqnum would be the same
+ return new CSN(TimeThread.getTime(), Integer.MAX_VALUE, Integer.MAX_VALUE);
}
/**
--
Gitblit v1.10.0