From f0a287fcba94440f81845a04fd0b6a4a70075a2c Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Mon, 19 Oct 2026 08:28:51 +0000
Subject: [PATCH] [#1195] Publish every change done while a recovery runs, and end the recovery only once they are out (#1204)
---
opendj-server-legacy/src/main/java/org/opends/server/replication/common/CSNGenerator.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/CSNGenerator.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/CSNGenerator.java
index a93a7e4..c6d99d7 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/CSNGenerator.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/CSNGenerator.java
@@ -13,6 +13,7 @@
*
* Copyright 2006-2009 Sun Microsystems, Inc.
* Portions Copyright 2011-2014 ForgeRock AS.
+ * Portions Copyright 2026 3A Systems, LLC.
*/
package org.opends.server.replication.common;
@@ -115,17 +116,15 @@
* received {@link CSN}
*
* @param number
- * the {@link CSN} to adjust with
+ * the {@link CSN} to adjust with, or {@code null} for none: the generator is then left
+ * as it is. Moved back to the clock, it numbered the next CSNs as, or before, ones it had
+ * generated or seen already - a domain reads back a ServerState which holds no change of
+ * its own after a restore or a total update (issue #1223).
*/
public void adjust(CSN number)
{
if (number==null)
{
- synchronized(this)
- {
- lastTime = TimeThread.getTime();
- seqnum = 0;
- }
return;
}
--
Gitblit v1.10.0