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

pgamba
24.04.2007 74be925257cd0df68cfde1a77f77cbb930c7832f
opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
@@ -45,7 +45,7 @@
  long numEntries;
  // The current number of entries exported
  long numExportedEntries;
  private long numExportedEntries;
  String entryBuffer = "";
  /**
@@ -92,11 +92,11 @@
        entryBuffer = entryBuffer + ebytes.substring(0, endOfEntryIndex);
        // Send the entry
        if ((numEntries>0) && (numExportedEntries > numEntries))
        if ((numEntries>0) && (getNumExportedEntries() > numEntries))
        {
          // This outputstream has reached the total number
          // of entries to export.
          return;
          throw(new IOException());
        }
        domain.exportLDIFEntry(entryBuffer);
        numExportedEntries++;
@@ -114,4 +114,12 @@
      }
    }
  }
  /**
   * Return the number of exported entries.
   * @return the numExportedEntries
   */
  public long getNumExportedEntries() {
    return numExportedEntries;
  }
}