From 4cd3d75a0c4b165101245c51f7ca4b8f8bdad7dc Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 07 Oct 2013 11:02:10 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB

---
 opends/src/server/org/opends/server/replication/server/ECLServerHandler.java |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ECLServerHandler.java b/opends/src/server/org/opends/server/replication/server/ECLServerHandler.java
index 65ed953..5e3c96e 100644
--- a/opends/src/server/org/opends/server/replication/server/ECLServerHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/ECLServerHandler.java
@@ -716,7 +716,7 @@
         // Assign the start state for the domain
         if (isPersistent == PERSISTENT_CHANGES_ONLY)
         {
-          newDomainCtxt.startState = rsd.getEligibleState(eligibleCSN);
+          newDomainCtxt.startState = rsd.getLatestServerState().duplicate();
           startStatesFromProvidedCookie.remove(rsd.getBaseDN());
         }
         else
@@ -760,8 +760,7 @@
             }
           }
 
-          // Set the stop state for the domain from the eligibleCSN
-          newDomainCtxt.stopState = rsd.getEligibleState(eligibleCSN);
+          newDomainCtxt.stopState = rsd.getLatestServerState().duplicate();
         }
         newDomainCtxt.currentState = new ServerState();
 

--
Gitblit v1.10.0