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

---
 opends/src/server/org/opends/server/replication/server/ReplicationBackend.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ReplicationBackend.java b/opends/src/server/org/opends/server/replication/server/ReplicationBackend.java
index 26a8834..e3f5e45 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationBackend.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationBackend.java
@@ -51,7 +51,7 @@
 import org.opends.server.replication.plugin.ReplicationServerListener;
 import org.opends.server.replication.protocol.*;
 import org.opends.server.replication.server.changelog.api.ChangelogException;
-import org.opends.server.replication.server.changelog.api.ReplicaDBCursor;
+import org.opends.server.replication.server.changelog.api.DBCursor;
 import org.opends.server.types.*;
 import org.opends.server.util.*;
 
@@ -630,14 +630,14 @@
       return;
     }
 
-    ReplicaDBCursor cursor = rsDomain.getCursorFrom(previousCSN);
+    DBCursor<UpdateMsg> cursor = rsDomain.getCursorFrom(previousCSN);
     try
     {
       int lookthroughCount = 0;
 
       // Walk through the changes
       cursor.next(); // first try to advance the cursor
-      while (cursor.getChange() != null)
+      while (cursor.getRecord() != null)
       {
         if (exportConfig != null && exportConfig.isCancelled())
         { // abort if cancelled
@@ -648,7 +648,7 @@
           break;
         }
         lookthroughCount++;
-        writeChange(cursor.getChange(), ldifWriter, searchOperation,
+        writeChange(cursor.getRecord(), ldifWriter, searchOperation,
             rsDomain.getBaseDN(), exportConfig != null);
         cursor.next();
       }

--
Gitblit v1.10.0