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

Jean-Noel Rouvignac
05.17.2014 12262caeda60050c11b1c730fc9b02ed86a55fcf
opendj3-server-dev/src/server/org/opends/server/backends/jeb/JECompressedSchema.java
@@ -196,25 +196,7 @@
   */
  private void load() throws DatabaseException, InitializationException
  {
    final DatabaseConfig dbConfig = new DatabaseConfig();
    if (environment.getConfig().getReadOnly())
    {
      dbConfig.setReadOnly(true);
      dbConfig.setAllowCreate(false);
      dbConfig.setTransactional(false);
    }
    else if (!environment.getConfig().getTransactional())
    {
      dbConfig.setAllowCreate(true);
      dbConfig.setTransactional(false);
      dbConfig.setDeferredWrite(true);
    }
    else
    {
      dbConfig.setAllowCreate(true);
      dbConfig.setTransactional(true);
    }
    final DatabaseConfig dbConfig = JEBUtils.toDatabaseConfigNoDuplicates(environment);
    adDatabase = environment.openDatabase(null, DB_NAME_AD, dbConfig);
    ocDatabase = environment.openDatabase(null, DB_NAME_OC, dbConfig);