From 574b552348f1f8a8740594b35fda1297ad62bfbe Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 03 Jun 2009 15:12:16 +0000
Subject: [PATCH] fix for issue 4028 : error 53 returned to application during reconnection
---
opends/src/server/org/opends/server/replication/service/ReplicationBroker.java | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java b/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java
index c20eced..427fea2 100644
--- a/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java
+++ b/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java
@@ -369,7 +369,6 @@
if (rsInfos.size() > 0)
{
-
// At least one server answered, find the best one.
String bestServer = computeBestReplicationServer(state, rsInfos,
serverId, baseDn, groupId);
@@ -1838,4 +1837,15 @@
}
}
}
+
+ /**
+ * Check if the broker could not find any Replication Server and therefore
+ * connection attempt failed.
+ *
+ * @return true if the server could not connect to any Replication Server.
+ */
+ public boolean hasConnectionError()
+ {
+ return connectionError;
+ }
}
--
Gitblit v1.10.0