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

mmarie
18.35.2008 d93627ee43ca3e694a7c4275d63c0571c4ec83dd
opends/src/server/org/opends/server/replication/common/ServerState.java
@@ -172,6 +172,31 @@
  }
  /**
   * Replace the Server State with another ServerState.
   *
   * @param serverState The ServerState.
   *
   * @return a boolean indicating if the update was meaningful.
   */
  public boolean reload(ServerState serverState) {
    if (serverState == null) {
      return false;
    }
    boolean result = false;
    clear();
    for (Short id : serverState) {
      ChangeNumber maxChangeNumber = getMaxChangeNumber(id);
      if (update(maxChangeNumber)) {
        result = true;
      }
    }
    return (result);
  }
  /**
   * return a Set of String usable as a textual representation of
   * a Server state.
   * format : time seqnum id