From ed847e95ab009b3f8a7b57636aa3bbe977bf875d Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Mon, 19 Oct 2009 07:56:29 +0000
Subject: [PATCH] Fix #4270 ECL Should not establish connections between RSes

---
 opends/src/server/org/opends/server/replication/server/MessageHandler.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/MessageHandler.java b/opends/src/server/org/opends/server/replication/server/MessageHandler.java
index 96cdaa6..4cb7198 100644
--- a/opends/src/server/org/opends/server/replication/server/MessageHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/MessageHandler.java
@@ -747,7 +747,8 @@
     else
     {
       this.serviceId = serviceId;
-      this.replicationServerDomain = getDomain(true, isDataServer);
+      if (!serviceId.equalsIgnoreCase("cn=changelog"))
+        this.replicationServerDomain = getDomain(true, isDataServer);
     }
   }
 
@@ -802,4 +803,12 @@
     return replicationServer.getGroupId();
   }
 
+  /**
+   * Get the serverId of the hosting replication server.
+   * @return the replication serverId.
+   */
+  public int getReplicationServerId()
+  {
+    return this.replicationServerId;
+  }
 }

--
Gitblit v1.10.0