From c015616756e6faa64060971753bc77978ae82dec 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.

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

diff --git a/opends/src/server/org/opends/server/replication/server/ServerHandler.java b/opends/src/server/org/opends/server/replication/server/ServerHandler.java
index 90e593b..ce95024 100644
--- a/opends/src/server/org/opends/server/replication/server/ServerHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/ServerHandler.java
@@ -113,7 +113,7 @@
   /**
    * The serverId of the remote server.
    */
-  protected short serverId;
+  protected int serverId;
   /**
    * The session opened with the remote server.
    */
@@ -251,7 +251,7 @@
       ProtocolSession session,
       int queueSize,
       String replicationServerURL,
-      short replicationServerId,
+      int replicationServerId,
       ReplicationServer replicationServer,
       int rcvWindowSize)
   {
@@ -686,7 +686,7 @@
    *
    * @return the ID of the server to which this object is linked
    */
-  public short getServerId()
+  public int getServerId()
   {
     return serverId;
   }
@@ -921,8 +921,8 @@
           // Timeout
           Message message = NOTE_TIMEOUT_WHEN_CROSS_CONNECTION.get(
               getServiceId(),
-              Short.toString(serverId),
-              Short.toString(replicationServerId));
+              Integer.toString(serverId),
+              Integer.toString(replicationServerId));
           throw new DirectoryException(ResultCode.OTHER, message);
         }
       }

--
Gitblit v1.10.0