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

diff --git a/opends/src/server/org/opends/server/replication/protocol/InitializeRequestMsg.java b/opends/src/server/org/opends/server/replication/protocol/InitializeRequestMsg.java
index ebe3adb..5e8faef 100644
--- a/opends/src/server/org/opends/server/replication/protocol/InitializeRequestMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/InitializeRequestMsg.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2006-2008 Sun Microsystems, Inc.
+ *      Copyright 2006-2009 Sun Microsystems, Inc.
  */
 package org.opends.server.replication.protocol;
 
@@ -47,11 +47,11 @@
    *
    * @param baseDn The base DN of the replication domain.
    * @param destination destination of this message
-   * @param senderID serverID of the server that will send this message
+   * @param serverID serverID of the server that will send this message
    */
-  public InitializeRequestMsg(String baseDn, short senderID, short destination)
+  public InitializeRequestMsg(String baseDn, int serverID, int destination)
   {
-    super(senderID, destination);
+    super(serverID, destination);
     this.baseDn = baseDn;
   }
 
@@ -80,13 +80,13 @@
       // sender
       length = getNextLength(in, pos);
       String sourceServerIdString = new String(in, pos, length, "UTF-8");
-      senderID = Short.valueOf(sourceServerIdString);
+      senderID = Integer.valueOf(sourceServerIdString);
       pos += length +1;
 
       // destination
       length = getNextLength(in, pos);
       String destinationServerIdString = new String(in, pos, length, "UTF-8");
-      destination = Short.valueOf(destinationServerIdString);
+      destination = Integer.valueOf(destinationServerIdString);
       pos += length +1;
 
 

--
Gitblit v1.10.0