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

Matthew Swift
04.46.2013 2fc933d03d5961fa75fc4a8ffef75d3ec3b125d6
opends/src/server/org/opends/server/replication/server/ReplicationDomainMonitorData.java
@@ -294,22 +294,21 @@
   */
  public void setMaxCSNs(ServerState state)
  {
    for (Integer serverId : state) {
      CSN newCSN = state.getCSN(serverId);
      setMaxCSN(serverId, newCSN);
    for (CSN newCSN : state)
    {
      setMaxCSN(newCSN);
    }
  }
  /**
   * For the provided serverId, sets the provided CSN as the max if
   * it is newer than the current max.
   * @param serverId the provided serverId
   * @param newCSN the provided new CSN
   */
  public void setMaxCSN(int serverId, CSN newCSN)
  public void setMaxCSN(CSN newCSN)
  {
    if (newCSN==null) return;
    if (newCSN == null) return;
    int serverId = newCSN.getServerId();
    CSN currentMaxCSN = maxCSNs.get(serverId);
    if (currentMaxCSN == null)
    {