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

pgamba
13.45.2007 8e41745b17b37a2a508ba6a016eddf9c6f219125
opends/src/server/org/opends/server/replication/server/DbHandler.java
@@ -217,6 +217,23 @@
  }
  /**
   * Get the number of changes.
   *
   * @return Returns the number of changes.
   */
  public long getChangesCount()
  {
    try
    {
      return lastChange.getSeqnum() - firstChange.getSeqnum() + 1;
    }
    catch (Exception e)
    {
      return 0;
    }
  }
  /**
   * Generate a new ReplicationIterator that allows to browse the db
   * managed by this dbHandler and starting at the position defined
   * by a given changeNumber.