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/RoutableMsg.java | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/protocol/RoutableMsg.java b/opends/src/server/org/opends/server/replication/protocol/RoutableMsg.java
index 4ec9df4..5b38558 100644
--- a/opends/src/server/org/opends/server/replication/protocol/RoutableMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/RoutableMsg.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;
@@ -42,34 +42,34 @@
/**
* Specifies that no server is identified.
*/
- public static final short UNKNOWN_SERVER = -1;
+ public static final int UNKNOWN_SERVER = -1;
/**
* Specifies all servers in the replication domain.
*/
- public static final short ALL_SERVERS = -2;
+ public static final int ALL_SERVERS = -2;
/**
* Inside a topology of servers in the same domain, it specifies
* the server that is the "closest" to the sender.
*/
- public static final short THE_CLOSEST_SERVER = -3;
+ public static final int THE_CLOSEST_SERVER = -3;
/**
* The destination server or servers of this message.
*/
- protected short destination = UNKNOWN_SERVER;
+ protected int destination = UNKNOWN_SERVER;
/**
* The serverID of the server that sends this message.
*/
- protected short senderID = UNKNOWN_SERVER;
+ protected int senderID = UNKNOWN_SERVER;
/**
* Creates a routable message.
- * @param senderID replication server id
+ * @param serverID replication server id
* @param destination replication server id
*/
- public RoutableMsg(short senderID, short destination)
+ public RoutableMsg(int serverID, int destination)
{
- this.senderID = senderID;
+ this.senderID = serverID;
this.destination = destination;
}
@@ -84,7 +84,7 @@
* Get the destination.
* @return the destination
*/
- public short getDestination()
+ public int getDestination()
{
return this.destination;
}
@@ -93,7 +93,7 @@
* Get the server ID of the server that sent this message.
* @return the server id
*/
- public short getsenderID()
+ public int getsenderID()
{
return this.senderID;
}
--
Gitblit v1.10.0