From 2da62bc07d8ec56f15adb2c4128bf02fabb3885c Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Tue, 01 Jul 2014 08:57:03 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1471 File based changelog : improve cursor behavior CR-3911

---
 opends/src/server/org/opends/server/replication/server/changelog/file/LogFile.java |   22 +---------------------
 1 files changed, 1 insertions(+), 21 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/changelog/file/LogFile.java b/opends/src/server/org/opends/server/replication/server/changelog/file/LogFile.java
index c27d38d..ff041ea 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/file/LogFile.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/file/LogFile.java
@@ -312,10 +312,6 @@
   /**
    * Returns a cursor that allows to retrieve the records from this log,
    * starting at the first position.
-   * <p>
-   * The returned cursor initially points to no record, that is
-   * {@code cursor.getRecord()} is equals {@code null} before any call to
-   * {@code cursor.next()} method.
    *
    * @return a cursor on the log records, which is never {@code null}
    * @throws ChangelogException
@@ -329,11 +325,6 @@
   /**
    * Returns a cursor that allows to retrieve the records from this log,
    * starting at the position defined by the provided key.
-   * <p>
-   * The returned cursor initially points to no record, that is
-   * {@code cursor.getRecord()} is equals to {@code null} before any call to
-   * {@code cursor.next()} method. After the first call to {@code cursor.next()}
-   * the cursor points to the record corresponding to the key.
    *
    * @param key
    *          Key to use as a start position for the cursor. If key is
@@ -351,11 +342,6 @@
    * Returns a cursor that allows to retrieve the records from this log,
    * starting at the position defined by the smallest key that is higher than
    * the provided key.
-   * <p>
-   * The returned cursor initially points to no record, that is
-   * {@code cursor.getRecord()} is equals to {@code null} before any call to
-   * {@code cursor.next()} method. After the first call to {@code cursor.next()}
-   * the cursor points to the record corresponding to the key found.
    *
    * @param key
    *          Key to use as a start position for the cursor. If key is
@@ -571,13 +557,7 @@
     return logfile.equals(other.logfile);
   }
 
-  /**
-   * Implements a repositionable cursor on the log file.
-   * <p>
-   * The cursor initially points to no record, that is
-   * {@code cursor.getRecord()} is equals to {@code null} before any call to
-   * {@code cursor.next()} method.
-   */
+  /** Implements a repositionable cursor on the log file. */
   static final class LogFileCursor<K extends Comparable<K>, V> implements RepositionableCursor<K,V>
   {
     /** The underlying log on which entries are read. */

--
Gitblit v1.10.0