From 9a13d05fcb1b17c52c7b91b8445d334bce3f9e28 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 22 Nov 2013 09:24:10 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1174 Transfer responsibility for populating the ChangeNumberIndexDB to ChangelogDB

---
 opends/src/server/org/opends/server/replication/common/MultiDomainServerState.java |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/common/MultiDomainServerState.java b/opends/src/server/org/opends/server/replication/common/MultiDomainServerState.java
index 7afe2d2..4186d3e 100644
--- a/opends/src/server/org/opends/server/replication/common/MultiDomainServerState.java
+++ b/opends/src/server/org/opends/server/replication/common/MultiDomainServerState.java
@@ -209,6 +209,26 @@
   }
 
   /**
+   * Removes the mapping to the provided CSN if it is present in this
+   * MultiDomainServerState.
+   *
+   * @param baseDN
+   *          the replication domain's baseDN
+   * @param expectedCSN
+   *          the CSN to be removed
+   * @return true if the CSN could be removed, false otherwise.
+   */
+  public boolean removeCSN(DN baseDN, CSN expectedCSN)
+  {
+    ServerState ss = list.get(baseDN);
+    if (ss != null)
+    {
+      return ss.removeCSN(expectedCSN);
+    }
+    return false;
+  }
+
+  /**
    * Test if this object equals the provided other object.
    * @param other The other object with which we want to test equality.
    * @return      Returns True if this equals other, else return false.

--
Gitblit v1.10.0