From 157717b205d4c1f957cf810e04e06f11530c619c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 02 Sep 2013 08:57:43 +0000
Subject: [PATCH] Renamed: - ChangeNumber to CSN - ChangeNumberGenerator to CSNGenerator - ChangeNumberTest to CSNTest - ChangeNumberGeneratorTest to CSNGeneratorTest

---
 opends/src/server/org/opends/server/replication/plugin/FakeModdnOperation.java |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/plugin/FakeModdnOperation.java b/opends/src/server/org/opends/server/replication/plugin/FakeModdnOperation.java
index 13f89ae..69e0eef 100644
--- a/opends/src/server/org/opends/server/replication/plugin/FakeModdnOperation.java
+++ b/opends/src/server/org/opends/server/replication/plugin/FakeModdnOperation.java
@@ -23,24 +23,22 @@
  *
  *
  *      Copyright 2010 Sun Microsystems, Inc.
- *      Portions copyright 2012 ForgeRock AS.
+ *      Portions copyright 2012-2013 ForgeRock AS
  */
 package org.opends.server.replication.plugin;
 
-import org.opends.server.replication.common.ChangeNumber;
+import org.opends.server.replication.common.CSN;
 import org.opends.server.replication.protocol.ModifyDNMsg;
 import org.opends.server.replication.protocol.ReplicationMsg;
 import org.opends.server.types.DN;
 import org.opends.server.types.Entry;
 
-
 /**
  * This class if used to build fake MODDN Operation from the historical
  * information that stay in the entry in the database.
  *
  * This is useful when a LDAP server can't find a LDAP server that
  * has already seen all its changes and therefore need to retransmit them.
- *
  */
 public class FakeModdnOperation extends FakeOperation
 {
@@ -49,12 +47,12 @@
   /**
    * Creates a new FakeModdnOperation.
    *
-   * @param cn     The ChangeNumber when the entry was last renamed.
+   * @param csn     The CSN when the entry was last renamed.
    * @param entry   The entry that the MODDN operation will rename.
    */
-  public FakeModdnOperation(ChangeNumber cn, Entry entry)
+  public FakeModdnOperation(CSN csn, Entry entry)
   {
-    super(cn);
+    super(csn);
     this.entry = entry;
   }
 
@@ -65,7 +63,7 @@
   public ReplicationMsg generateMessage()
   {
     DN dn = entry.getDN();
-    return new ModifyDNMsg(dn.toString(), this.getChangeNumber(),
+    return new ModifyDNMsg(dn.toString(), getCSN(),
         EntryHistorical.getEntryUUID(entry),
         LDAPReplicationDomain.findEntryUUID(dn.getParent()),
         false, dn.getParent().toString(), dn.getRDN().toString());

--
Gitblit v1.10.0