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/MessageHandler.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/MessageHandler.java b/opends/src/server/org/opends/server/replication/server/MessageHandler.java
index b53ba96..96cdaa6 100644
--- a/opends/src/server/org/opends/server/replication/server/MessageHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/MessageHandler.java
@@ -86,7 +86,7 @@
/**
* The serverID of the hosting replication server.
*/
- protected short replicationServerId;
+ protected int replicationServerId;
/**
* Specifies the related replication server domain based on serviceId(baseDn).
*/
@@ -141,7 +141,7 @@
public MessageHandler(
int queueSize,
String replicationServerURL,
- short replicationServerId,
+ int replicationServerId,
ReplicationServer replicationServer)
{
super("Message Handler");
@@ -363,7 +363,7 @@
SortedSet<ReplicationIterator> iteratorSortedSet =
new TreeSet<ReplicationIterator>(comparator);
/* fill the lateQueue */
- for (short serverId : replicationServerDomain.getServers())
+ for (int serverId : replicationServerDomain.getServers())
{
ChangeNumber lastCsn = serverState.getMaxChangeNumber(serverId);
ReplicationIterator iterator =
@@ -529,7 +529,7 @@
try
{
// Build a list of candidates iterator (i.e. db i.e. server)
- for (short serverId : replicationServerDomain.getServers())
+ for (int serverId : replicationServerDomain.getServers())
{
// get the last already sent CN from that server
ChangeNumber lastCsn = serverState.getMaxChangeNumber(serverId);
--
Gitblit v1.10.0