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/LightweightServerHandler.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java b/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java
index 27d6e8d..e3b4ffc 100644
--- a/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java
@@ -69,10 +69,10 @@
private ReplicationServerHandler replServerHandler;
private ReplicationServerDomain rsDomain;
// The id of the RS this DS is connected to
- private short replicationServerId = -1;
+ private int replicationServerId = -1;
// Server id of this DS
- private short serverId = -1;
+ private int serverId = -1;
// Generation id of this DS
private long generationId = -1;
// Group id of the DS;
@@ -109,7 +109,7 @@
* @param eclInclude The list of entry attributes to be added to the ECL.
*/
public LightweightServerHandler(ReplicationServerHandler replServerHandler,
- short replicationServerId, short serverId, long generationId, byte groupId,
+ int replicationServerId, int serverId, long generationId, byte groupId,
ServerStatus status, List<String> refUrls, boolean assuredFlag,
AssuredMode assuredMode, byte safeDataLevel, Set<String> eclInclude)
{
@@ -153,9 +153,9 @@
* Get the serverID associated with this LDAP server.
* @return The serverId.
*/
- public short getServerId()
+ public int getServerId()
{
- return Short.valueOf(serverId);
+ return serverId;
}
/**
--
Gitblit v1.10.0