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

Jean-Noël Rouvignac
01.41.2015 ad41085e4ca8a32e29d443591069ec4e94e65067
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Count.java
@@ -27,8 +27,8 @@
import org.forgerock.opendj.ldap.ByteSequence;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.ByteStringBuilder;
import org.forgerock.util.Reject;
import org.forgerock.util.Function;
import org.forgerock.util.Reject;
import org.forgerock.util.promise.NeverThrowsException;
import org.opends.server.backends.pluggable.spi.Cursor;
import org.opends.server.backends.pluggable.spi.Importer;
@@ -175,11 +175,11 @@
    return counterValue;
  }
  private static final ByteSequence getKeyFromEntryID(EntryID entryID) {
  private static ByteSequence getKeyFromEntryID(EntryID entryID) {
    return new ByteStringBuilder(LONG_SIZE).appendCompactUnsigned(entryID.longValue());
  }
  private static final ByteSequence getKeyFromEntryIDAndBucket(EntryID entryID, long bucket) {
  private static ByteSequence getKeyFromEntryIDAndBucket(EntryID entryID, long bucket) {
    return new ByteStringBuilder(LONG_SIZE + LONG_SIZE).appendCompactUnsigned(entryID.longValue())
        .appendCompactUnsigned(bucket);
  }