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/common/ChangeNumber.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/common/ChangeNumber.java b/opends/src/server/org/opends/server/replication/common/ChangeNumber.java
index 49f9bab..03315d3 100644
--- a/opends/src/server/org/opends/server/replication/common/ChangeNumber.java
+++ b/opends/src/server/org/opends/server/replication/common/ChangeNumber.java
@@ -37,7 +37,7 @@
   private static final long serialVersionUID = -8802722277749190740L;
   private final long timeStamp;
   private final int seqnum;
-  private final short serverId;
+  private final int serverId;
 
   // A String representation of the ChangeNumber suitable for network
   // transmission.
@@ -54,7 +54,7 @@
     timeStamp = Long.parseLong(temp, 16);
 
     temp = str.substring(16, 20);
-    serverId = Short.parseShort(temp, 16);
+    serverId = Integer.parseInt(temp, 16);
 
     temp = str.substring(20, 28);
     seqnum = Integer.parseInt(temp, 16);
@@ -67,11 +67,11 @@
    *
    * @param time time for the ChangeNumber
    * @param seq sequence number
-   * @param id identity of server
+   * @param serverId2 identity of server
    */
-  public ChangeNumber(long time, int seq, short id)
+  public ChangeNumber(long time, int seq, int serverId2)
   {
-    serverId = id;
+    serverId = serverId2;
     timeStamp = time;
     seqnum = seq;
   }
@@ -107,7 +107,7 @@
    * Getter for the server ID.
    * @return the server ID
    */
-  public short getServerId()
+  public int getServerId()
   {
     return serverId;
   }

--
Gitblit v1.10.0