From 1b66c5e83ffbd4e8ffa7a6c94add9262da08c68e Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Mon, 26 May 2008 15:48:09 +0000
Subject: [PATCH] Fix 3276 - dsreplication post-external-initialization should return (an error) if replication plugin is stopped
---
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java
index 3f21859..05a9386 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java
@@ -2525,13 +2525,24 @@
* their change dbs.
*
* @param generationIdNewValue The new value of the generation Id.
+ * @throws DirectoryException when an error occurs
*/
public void resetGenerationId(Long generationIdNewValue)
+ throws DirectoryException
{
if (debugEnabled())
TRACER.debugInfo(
this.getName() + "resetGenerationId" + generationIdNewValue);
+ if (!isConnected())
+ {
+ ResultCode resultCode = ResultCode.OTHER;
+ Message message = ERR_RESET_GENERATION_CONN_ERR_ID.get(
+ baseDN.toNormalizedString());
+ throw new DirectoryException(
+ resultCode, message);
+ }
+
ResetGenerationId genIdMessage = null;
if (generationIdNewValue == null)
{
--
Gitblit v1.10.0