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/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
index 45b7986..64eabd1 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
@@ -213,7 +213,7 @@
* does not exist, take the 'empty backend' generationID.
*/
protected ReplicationBroker openReplicationSession(
- final DN baseDn, short serverId, int window_size,
+ final DN baseDn, int serverId, int window_size,
int port, int timeout, boolean emptyOldChanges)
throws Exception, SocketException
{
@@ -226,7 +226,7 @@
* providing the generationId.
*/
protected ReplicationBroker openReplicationSession(
- final DN baseDn, short serverId, int window_size,
+ final DN baseDn, int serverId, int window_size,
int port, int timeout, boolean emptyOldChanges,
long generationId)
throws Exception, SocketException
@@ -240,7 +240,7 @@
* providing the generationId.
*/
protected ReplicationBroker openReplicationSession(
- final DN baseDn, short serverId, int window_size,
+ final DN baseDn, int serverId, int window_size,
int port, int timeout, boolean emptyOldChanges,
long generationId, ReplicationDomain replicationDomain)
throws Exception, SocketException
@@ -292,7 +292,7 @@
}
/**
- * Open an ECL replicationServer session to the local ReplicationServer
+ * Open an ECL replicationServer session to the local ReplicationServer
protected ReplicationBroker openECLReplicationSession(
int window_size, int port, int timeout, boolean emptyOldChanges,
Short serverId)
@@ -393,7 +393,7 @@
*
*/
protected ReplicationBroker openReplicationSession(
- final DN baseDn, short serverId, int window_size,
+ final DN baseDn, int serverId, int window_size,
int port, int timeout, ServerState state)
throws Exception, SocketException
{
@@ -406,7 +406,7 @@
* starting with a given ServerState.
*/
protected ReplicationBroker openReplicationSession(
- final DN baseDn, short serverId, int window_size,
+ final DN baseDn, int serverId, int window_size,
int port, int timeout, ServerState state, long generationId)
throws Exception, SocketException
{
@@ -428,7 +428,7 @@
*
*/
protected ReplicationBroker openReplicationSession(
- final DN baseDn, short serverId, int window_size,
+ final DN baseDn, int serverId, int window_size,
int port, int timeout, int maxSendQueue, int maxRcvQueue,
boolean emptyOldChanges)
throws Exception, SocketException
@@ -439,7 +439,7 @@
}
protected ReplicationBroker openReplicationSession(
- final DN baseDn, short serverId, int window_size,
+ final DN baseDn, int serverId, int window_size,
int port, int timeout, int maxSendQueue, int maxRcvQueue,
boolean emptyOldChanges, long generationId)
throws Exception, SocketException
--
Gitblit v1.10.0