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

Jean-Noel Rouvignac
07.29.2014 7ea8ac48d10e033ba0d6ca0ec0d66ace144062a0
opends/src/server/org/opends/server/replication/common/ServerState.java
@@ -250,6 +250,20 @@
  }
  /**
   * Returns a snapshot of this object.
   *
   * @return an unmodifiable List representing a snapshot of this object.
   */
  public List<CSN> getSnapshot()
  {
    if (serverIdToCSN.isEmpty())
    {
      return Collections.emptyList();
    }
    return Collections.unmodifiableList(new ArrayList<CSN>(serverIdToCSN.values()));
  }
  /**
   * Return the text representation of ServerState.
   * @return the text representation of ServerState
   */