From 9268da54b39dff6f0afbda53c9bd61deff1a8f66 Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Wed, 25 Nov 2009 10:52:59 +0000
Subject: [PATCH] Fix P3/#4340 ECL (draft mode): on second RS, first and last ChangeNumber are 0 and lastExternalChangelogCookie missing until first search

---
 opends/src/server/org/opends/server/replication/server/ReplicationServer.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 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 a33973e..e554086 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
@@ -198,6 +198,9 @@
   // used to synchronize the domain creation with the connect thread.
   final private Object domainMonitor = new Object();
 
+  // ServiceIDs excluded for ECL
+  private  ArrayList<String> excludedServiceIDs = new ArrayList<String>();
+
   /**
    * The weight affected to the replication server.
    * Each replication server of the topology has a weight. When combined
@@ -1779,7 +1782,6 @@
     }
   }
 
-  private  ArrayList<String> excludedServiceIDs;
   /**
    * Excluded a list of domain from eligibility computation.
    * @param excludedServiceIDs the provided list of serviceIDs excluded from
@@ -2026,6 +2028,8 @@
   public MultiDomainServerState getLastECLCookie(
     ArrayList<String> excludedServiceIDs)
   {
+    disableEligibility(excludedServiceIDs);
+
     MultiDomainServerState result = new MultiDomainServerState();
     // Initialize start state for  all running domains with empty state
     Iterator<ReplicationServerDomain> rsdk = this.getDomainIterator();

--
Gitblit v1.10.0