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

Jean-Noel Rouvignac
22.47.2014 a592fe71c4c2e29a136f9700a2981f3dcbd7e114
opendj3-server-dev/src/server/org/opends/server/replication/common/ServerState.java
@@ -421,28 +421,4 @@
    return saved;
  }
  /**
   * Build a copy of the ServerState with only CSNs older than a provided
   * timestamp. This is used when building the initial Cookie in the External
   * Changelog, to cope with purged changes.
   *
   * @param timestamp
   *          The timestamp to compare the ServerState against
   * @return a copy of the ServerState which only contains the CSNs older than
   *         csn.
   */
  public ServerState duplicateOnlyOlderThan(long timestamp)
  {
    final CSN csn = new CSN(timestamp, 0, 0);
    final ServerState newState = new ServerState();
    for (CSN change : serverIdToCSN.values())
    {
      if (change.isOlderThan(csn))
      {
        newState.serverIdToCSN.put(change.getServerId(), change);
      }
    }
    return newState;
  }
}