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

diff --git a/opends/src/server/org/opends/server/replication/common/RSInfo.java b/opends/src/server/org/opends/server/replication/common/RSInfo.java
index 2a5ea4e..5b6d9e2 100644
--- a/opends/src/server/org/opends/server/replication/common/RSInfo.java
+++ b/opends/src/server/org/opends/server/replication/common/RSInfo.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008 Sun Microsystems, Inc.
+ *      Copyright 2008-2009 Sun Microsystems, Inc.
  */
 package org.opends.server.replication.common;
 
@@ -35,7 +35,7 @@
 public class RSInfo
 {
   // Server id of the RS
-  private short id = -1;
+  private int id = -1;
   // Generation Id of the RS
   private long generationId = -1;
   // Group id of the RS
@@ -48,7 +48,7 @@
    * @param generationId The generation id the RS is using
    * @param groupId RS group id
    */
-  public RSInfo(short id, long generationId, byte groupId)
+  public RSInfo(int id, long generationId, byte groupId)
   {
     this.id = id;
     this.generationId = generationId;
@@ -59,7 +59,7 @@
    * Get the RS id.
    * @return the RS id
    */
-  public short getId()
+  public int getId()
   {
     return id;
   }
@@ -130,9 +130,9 @@
     StringBuffer sb = new StringBuffer();
     sb.append("Id: ");
     sb.append(id);
-    sb.append("\nGeneration id: ");
+    sb.append(" Generation id: ");
     sb.append(generationId);
-    sb.append("\nGroup id: ");
+    sb.append(" Group id: ");
     sb.append(groupId);
     return sb.toString();
   }

--
Gitblit v1.10.0