From c6650aedac5c1ade8aee9e7a76eb0dd100a3e179 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Mon, 02 Nov 2026 15:39:56 +0000
Subject: [PATCH] [#1246] Keep the messages of the last local changes, and have a recovery publish the changes done before it began from them, as they were done (#1251)
---
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java
index 49181cf..1b7a39b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java
@@ -424,6 +424,16 @@
try
{
LDAPReplicationDomain rd = createNewDomain(configuration);
+ if (rd == null)
+ {
+ ccr.setResultCode(ResultCode.UNAVAILABLE);
+ final LocalizableMessage reason = LocalBackend.getWriteFailure(configuration.getBaseDN());
+ if (reason != null)
+ {
+ ccr.addMessage(reason);
+ }
+ return ccr;
+ }
if (State.RUNNING.equals(state.get()))
{
rd.start();
--
Gitblit v1.10.0