From 1bff31ca61c88343ba66592675b8b4d93fd7680a Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 06 Feb 2007 19:22:18 +0000
Subject: [PATCH] Update the InternalClientConnection object to make the default constructor private so that all attempts to get a root-authenticated connection should use the InternalClientConnection.getRootConnection() method, which will be more efficient.
---
opends/src/server/org/opends/server/synchronization/plugin/ChangelogBroker.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/synchronization/plugin/ChangelogBroker.java b/opends/src/server/org/opends/server/synchronization/plugin/ChangelogBroker.java
index 5239d75..d545a51 100644
--- a/opends/src/server/org/opends/server/synchronization/plugin/ChangelogBroker.java
+++ b/opends/src/server/org/opends/server/synchronization/plugin/ChangelogBroker.java
@@ -276,7 +276,8 @@
* Get all the changes that have not been seen by this changelog
* server and update it
*/
- InternalClientConnection conn = new InternalClientConnection();
+ InternalClientConnection conn =
+ InternalClientConnection.getRootConnection();
LDAPFilter filter = LDAPFilter.decode(
"("+ Historical.HISTORICALATTRIBUTENAME +
">=dummy:" + changelogMaxChangeNumber + ")");
--
Gitblit v1.10.0