From 6e1a57e1c6e5450c0bc9320616416359a4e8a99a Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 26 Sep 2013 15:29:01 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB

---
 opendj-sdk/opends/src/server/org/opends/server/replication/server/changelog/je/DbHandler.java |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/server/changelog/je/DbHandler.java b/opendj-sdk/opends/src/server/org/opends/server/replication/server/changelog/je/DbHandler.java
index 9f57083..eeb52b2 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/server/changelog/je/DbHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/server/changelog/je/DbHandler.java
@@ -263,7 +263,8 @@
    * by this dbHandler and starting at the position defined by a given CSN.
    *
    * @param startAfterCSN
-   *          The position where the cursor must start.
+   *          The position where the cursor must start. If null, start from the
+   *          oldest CSN
    * @return a new {@link ReplicaDBCursor} that allows to browse the db managed
    *         by this dbHandler and starting at the position defined by a given
    *         CSN.
@@ -634,12 +635,16 @@
   }
 
   /**
-   * Set the counter writing window size (public for unit tests only).
-   * @param size Size in number of record.
+   * Set the window size for writing counter records in the DB.
+   * <p>
+   * for unit tests only!!
+   *
+   * @param size
+   *          window size in number of records.
    */
-  public void setCounterWindowSize(int size)
+  void setCounterRecordWindowSize(int size)
   {
-    db.setCounterWindowSize(size);
+    db.setCounterRecordWindowSize(size);
   }
 
   /**

--
Gitblit v1.10.0