From 5fde69a235be87ad20d48f3569eb9d0bc8e9c4e4 Mon Sep 17 00:00:00 2001
From: fdorson <fdorson@localhost>
Date: Thu, 03 Jul 2008 16:11:05 +0000
Subject: [PATCH] Roll Back changes related to issue #3314 because it seems to make the InitOnlineTest fail
---
opends/src/server/org/opends/server/replication/server/ReplicationServer.java | 30 ------------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/ReplicationServer.java b/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
index 14de2c9..47058ec 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
@@ -627,13 +627,9 @@
{
// Changing those properties don't need specific code.
// They will be applied for next connections.
-
- disconnectRemovedReplicationServers(configuration.getReplicationServer());
-
replicationServers = configuration.getReplicationServer();
if (replicationServers == null)
replicationServers = new ArrayList<String>();
-
queueSize = configuration.getQueueSize();
long newPurgeDelay = configuration.getReplicationPurgeDelay();
if (newPurgeDelay != purgeDelay)
@@ -1028,30 +1024,4 @@
}
}
}
-
- /**
- * Compute the list of replication servers that are not any
- * more connected to this Replication Server and stop the
- * corresponding handlers.
- * @param newReplServers the list of the new replication servers configured.
- */
- private void disconnectRemovedReplicationServers(
- Collection<String> newReplServers)
- {
- Collection<String> serversToDisconnect = new ArrayList<String>();
-
- for (String server: replicationServers)
- {
- if (!newReplServers.contains(server))
- serversToDisconnect.add(server);
- }
-
- if (serversToDisconnect.isEmpty())
- return;
-
- for (ReplicationServerDomain replicationServerDomain: baseDNs.values())
- {
- replicationServerDomain.stopServers(serversToDisconnect);
- }
- }
}
--
Gitblit v1.10.0