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

dugan
19.13.2009 8e1eeb5c653e53209f9b2f2da4f942ca443c3c69
opends/src/server/org/opends/server/backends/jeb/importLDIF/Importer.java
@@ -1203,7 +1203,7 @@
        while((nodeID = dn2id.get(null, dn, LockMode.DEFAULT)) == null) {
          try {
            Thread.sleep(50);
            if(i == 3) {
            if(i == 10) {
              return null;
            }
            i++;
@@ -2900,33 +2900,5 @@
      return type.getPrimaryName() + "." +
             StaticUtils.toLowerCase(indexType.name());
    }
    /**
     * Returns a previously allocated byte array having sub-string length size
     * if the index key is a sub-string index and the desired size is equal to
     * sub-string size. This is a performance hack for sub-string indexes only.
     *
     * @param size The size of byte array desired.
     * @return Either a previously allocated byte array, or a freshly created
     * one using the size parameter.
     */
    public byte[] getKeyBytes(int size)
    {
      if(keyBytes != null)
      {
        if(size == keyBytes.length)
        {
          return this.keyBytes;
        }
        else
        {
          return new byte[size];
        }
      }
      else
      {
        return new byte[size];
      }
    }
  }
}