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

diff --git a/opends/src/server/org/opends/server/replication/server/ReplicationDB.java b/opends/src/server/org/opends/server/replication/server/ReplicationDB.java
index c3c74f9..a86bb11 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationDB.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationDB.java
@@ -57,7 +57,7 @@
   private Database db = null;
   private ReplicationDbEnv dbenv = null;
   private ReplicationServer replicationServer;
-  private Short serverId;
+  private int serverId;
   private String baseDn;
 
   // The maximum number of retries in case of DatabaseDeadlock Exception.
@@ -76,7 +76,7 @@
    * @param dbenv The Db environment to use to create the db.
    * @throws DatabaseException If a database problem happened.
    */
-  public ReplicationDB(Short serverId, String baseDn,
+  public ReplicationDB(int serverId, String baseDn,
                      ReplicationServer replicationServer,
                      ReplicationDbEnv dbenv)
                      throws DatabaseException
@@ -379,7 +379,7 @@
   @Override
   public String toString()
   {
-    return serverId.toString() + baseDn.toString();
+    return serverId + baseDn.toString();
   }
 
   /**

--
Gitblit v1.10.0