From 22632fe3bf532c2b76f99b41b40c188d88464847 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 24 Sep 2013 15:23:11 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB
---
opends/src/server/org/opends/server/replication/server/changelog/je/ReplicationDB.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/changelog/je/ReplicationDB.java b/opends/src/server/org/opends/server/replication/server/changelog/je/ReplicationDB.java
index c50b535..78a2167 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/je/ReplicationDB.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/je/ReplicationDB.java
@@ -326,11 +326,11 @@
}
/**
- * Read the first Change from the database.
+ * Read the oldest CSN present in the database.
*
- * @return the first CSN.
+ * @return the oldest CSN in the DB, null if the DB is empty or closed
*/
- public CSN readFirstChange()
+ public CSN readOldestCSN()
{
dbCloseLock.readLock().lock();
@@ -383,11 +383,11 @@
/**
- * Read the last Change from the database.
+ * Read the newest CSN present in the database.
*
- * @return the last CSN.
+ * @return the newest CSN in the DB, null if the DB is empty or closed
*/
- public CSN readLastChange()
+ public CSN readNewestCSN()
{
dbCloseLock.readLock().lock();
--
Gitblit v1.10.0