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/protocol/ReplServerStartMsg.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/protocol/ReplServerStartMsg.java b/opends/src/server/org/opends/server/replication/protocol/ReplServerStartMsg.java
index 7127bd5..7c83505 100644
--- a/opends/src/server/org/opends/server/replication/protocol/ReplServerStartMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/ReplServerStartMsg.java
@@ -37,7 +37,7 @@
  */
 public class ReplServerStartMsg extends StartMsg
 {
-  private short serverId;
+  private Integer serverId;
   private String serverURL;
   private String baseDn = null;
   private int windowSize;
@@ -71,7 +71,7 @@
    * @param groupId The group id of the RS
    * @param degradedStatusThreshold The degraded status threshold
    */
-  public ReplServerStartMsg(short serverId, String serverURL, String baseDn,
+  public ReplServerStartMsg(int serverId, String serverURL, String baseDn,
                                int windowSize,
                                ServerState serverState,
                                short protocolVersion,
@@ -130,7 +130,7 @@
        */
       length = getNextLength(in, pos);
       String serverIdString = new String(in, pos, length, "UTF-8");
-      serverId = Short.valueOf(serverIdString);
+      serverId = Integer.valueOf(serverIdString);
       pos += length +1;
 
       /*
@@ -185,7 +185,7 @@
    * Get the Server Id.
    * @return the server id
    */
-  public short getServerId()
+  public int getServerId()
   {
     return this.serverId;
   }

--
Gitblit v1.10.0