mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
07.55.2010 018234e6ccd27c399d0d1aa17981c8b4f7abbc39
opends/src/server/org/opends/server/replication/plugin/Historical.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 */
package org.opends.server.replication.plugin;
@@ -449,6 +449,25 @@
  /**
   * Returns the lastChangeNumber when the entry DN was modified.
   *
   * @return The lastChangeNumber when the entry DN was modified.
   */
  public ChangeNumber getDNDate()
  {
    if (ADDDate == null)
      return MODDNDate;
    if (MODDNDate == null)
      return ADDDate;
    if (MODDNDate.older(ADDDate))
      return MODDNDate;
    else
      return ADDDate;
  }
  /**
   * read the historical information from the entry attribute and
   * load it into the Historical object attached to the entry.
   * @param entry The entry which historical information must be loaded