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/DoneMsg.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/protocol/DoneMsg.java b/opends/src/server/org/opends/server/replication/protocol/DoneMsg.java
index 24ebd5b..fdc2197 100644
--- a/opends/src/server/org/opends/server/replication/protocol/DoneMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/DoneMsg.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;
@@ -40,12 +40,12 @@
/**
* Creates a message.
*
- * @param sender The sender server of this message.
- * @param destination The server or servers targetted by this message.
+ * @param serverID The sender server of this message.
+ * @param i The server or servers targetted by this message.
*/
- public DoneMsg(short sender, short destination)
+ public DoneMsg(int serverID, int i)
{
- super(sender, destination);
+ super(serverID, i);
}
/**
@@ -67,13 +67,13 @@
// sender
int length = getNextLength(in, pos);
String senderString = new String(in, pos, length, "UTF-8");
- this.senderID = Short.valueOf(senderString);
+ this.senderID = Integer.valueOf(senderString);
pos += length +1;
// destination
length = getNextLength(in, pos);
String destinationString = new String(in, pos, length, "UTF-8");
- this.destination = Short.valueOf(destinationString);
+ this.destination = Integer.valueOf(destinationString);
pos += length +1;
} catch (UnsupportedEncodingException e)
--
Gitblit v1.10.0