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/DependencyTest.java | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java
index f73adac..79ef965 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2007-2008 Sun Microsystems, Inc.
+ * Copyright 2007-2009 Sun Microsystems, Inc.
*/
package org.opends.server.replication;
@@ -93,9 +93,9 @@
LDAPReplicationDomain domain = null;
DN baseDn = DN.decode(TEST_ROOT_DN_STRING);
SynchronizationProvider replicationPlugin = null;
- short brokerId = 2;
- short serverId = 1;
- short replServerId = 81;
+ int brokerId = 2;
+ int serverId = 1;
+ int replServerId = 81;
int AddSequenceLength = 30;
@@ -258,9 +258,9 @@
LDAPReplicationDomain domain = null;
DN baseDn = DN.decode(TEST_ROOT_DN_STRING);
SynchronizationProvider replicationPlugin = null;
- short brokerId = 2;
- short serverId = 1;
- short replServerId = 82;
+ int brokerId = 2;
+ int serverId = 1;
+ int replServerId = 82;
cleanDB();
@@ -416,9 +416,9 @@
LDAPReplicationDomain domain = null;
DN baseDn = DN.decode(TEST_ROOT_DN_STRING);
SynchronizationProvider replicationPlugin = null;
- short brokerId = 2;
- short serverId = 1;
- short replServerId = 83;
+ int brokerId = 2;
+ int serverId = 1;
+ int replServerId = 83;
int AddSequenceLength = 30;
cleanDB();
@@ -549,9 +549,9 @@
LDAPReplicationDomain domain = null;
DN baseDn = DN.decode(TEST_ROOT_DN_STRING);
SynchronizationProvider replicationPlugin = null;
- short brokerId = 2;
- short serverId = 1;
- short replServerId = 84;
+ int brokerId = 2;
+ int serverId = 1;
+ int replServerId = 84;
int AddSequenceLength = 30;
cleanDB();
--
Gitblit v1.10.0