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

Jean-Noel Rouvignac
05.29.2014 e8053208c37ad81d6778f723a70f598d296437a0
opendj3-server-dev/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -153,7 +153,7 @@
      try
      {
        //Try creating all the indexes before confirming they are valid ones.
        new AttributeIndex(cfg, state, env, EntryContainer.this);
        new AttributeIndex(cfg, EntryContainer.this);
        return true;
      }
      catch(Exception e)
@@ -172,8 +172,7 @@
      try
      {
        AttributeIndex index =
          new AttributeIndex(cfg, state, env, EntryContainer.this);
        AttributeIndex index = new AttributeIndex(cfg, EntryContainer.this);
        index.open();
        if(!index.isTrusted())
        {
@@ -474,8 +473,7 @@
      {
        LocalDBIndexCfg indexCfg = config.getLocalDBIndex(idx);
        AttributeIndex index =
          new AttributeIndex(indexCfg, state, env, this);
        AttributeIndex index = new AttributeIndex(indexCfg, this);
        index.open();
        if(!index.isTrusted())
        {
@@ -3355,6 +3353,20 @@
    return index;
  }
  /**
   * Creates a new index for an attribute.
   *
   * @param indexName the name to give to the new index
   * @param indexer the indexer to use when inserting data into the index
   * @param indexEntryLimit the index entry limit
   * @return a new index
   */
  Index newIndexForAttribute(String indexName, Indexer indexer, int indexEntryLimit)
  {
    final int cursorEntryLimit = 100000;
    return new Index(indexName, indexer, state, indexEntryLimit, cursorEntryLimit, false, env, this);
  }
  /**
   * Checks if any modifications apply to this indexed attribute.