From ae408b6c09759f61754f3e7b39d5e5d6595c1fc4 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 07 Oct 2009 12:19:42 +0000
Subject: [PATCH] The documentation and the configuration of a Replication Domain allow a maximum value of 65535 for the server-id property. Nevertheless, the server-id in the ReplicationDomain implementation is managed as a short allowing a maximum value of 32767.

---
 opendj-sdk/opends/src/server/org/opends/server/replication/service/CTHeartbeatPublisherThread.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/service/CTHeartbeatPublisherThread.java b/opendj-sdk/opends/src/server/org/opends/server/replication/service/CTHeartbeatPublisherThread.java
index 082f67b..e301b53 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/service/CTHeartbeatPublisherThread.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/service/CTHeartbeatPublisherThread.java
@@ -64,7 +64,7 @@
    * The time in milliseconds between heartbeats.
    */
   private long heartbeatInterval;
-  private short serverId;
+  private int serverId;
 
   /**
    * Set this to stop the thread.
@@ -78,15 +78,15 @@
    * @param session The session on which heartbeats are to be sent.
    * @param heartbeatInterval The interval between heartbeats sent
    *                          (in milliseconds).
-   * @param serverId The serverId of the sender domain.
+   * @param serverId2 The serverId of the sender domain.
    */
   public CTHeartbeatPublisherThread(String threadName, ProtocolSession session,
-                  long heartbeatInterval, short serverId)
+                  long heartbeatInterval, int serverId2)
   {
     super(threadName);
     this.session = session;
     this.heartbeatInterval = heartbeatInterval;
-    this.serverId = serverId;
+    this.serverId = serverId2;
   }
 
   /**

--
Gitblit v1.10.0