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

coulbeck
13.23.2006 6cff6e50e589ff91df76fafac8e0f72918b5ce5c
opends/src/server/org/opends/server/backends/jeb/ImportJob.java
@@ -153,7 +153,7 @@
   */
  public void importLDIF() throws DatabaseException, IOException, JebException
  {
    String backendDirectory = config.getBackendDirectory();
    File backendDirectory = config.getBackendDirectory();
    EnvironmentConfig envConfig = config.getEnvironmentConfig();
    envConfig.setConfigParam("je.env.runCheckpointer", "false");
@@ -176,8 +176,7 @@
      envConfig.setConfigParam("je.env.isLocking", "false");
    }
    File envHome = new File(backendDirectory);
    env = new Environment(envHome, envConfig);
    env = new Environment(backendDirectory, envConfig);
    if (!ldifImportConfig.appendToExistingData())
    {
@@ -185,8 +184,8 @@
      // environment and re-open it. Only do this when we are
      // importing to all the base DNs in the backend.
      env.close();
      EnvManager.removeFiles(backendDirectory);
      env = new Environment(envHome, envConfig);
      EnvManager.removeFiles(backendDirectory.getPath());
      env = new Environment(backendDirectory, envConfig);
    }
    // Divide the total buffer size by the number of threads