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

coulbeck
12.27.2007 35af51f9683f5ef8cec66baca7b89aa1e1cbc44e
opends/src/server/org/opends/server/tasks/ImportTask.java
@@ -42,7 +42,6 @@
import org.opends.server.core.LockFileManager;
import org.opends.server.api.Backend;
import org.opends.server.api.ClientConnection;
import org.opends.server.config.ConfigEntry;
import org.opends.server.types.Attribute;
import org.opends.server.types.AttributeType;
import org.opends.server.types.DirectoryException;
@@ -285,7 +284,6 @@
    // Get the backend into which the LDIF should be imported.
    Backend       backend;
    ConfigEntry   configEntry;
    ArrayList<DN> defaultIncludeBranches;
    ArrayList<DN> excludeBranches = new ArrayList<DN>();
@@ -308,9 +306,6 @@
      return TaskState.STOPPED_BY_ERROR;
    }
    // Get the config entry for this backend.
    configEntry = TaskUtils.getConfigEntry(backend);
    // Find backends with subordinate base DNs that should be excluded from the
    // import.
@@ -479,7 +474,7 @@
    // Disable the backend.
    try
    {
      TaskUtils.setBackendEnabled(configEntry, false);
      TaskUtils.disableBackend(backendID);
    }
    catch (DirectoryException e)
    {
@@ -530,7 +525,7 @@
      // Launch the import.
      try
      {
        backend.importLDIF(configEntry, baseDNs, importConfig);
        backend.importLDIF(importConfig);
      }
      catch (DirectoryException de)
      {
@@ -599,7 +594,7 @@
      // Enable the backend.
      try
      {
        TaskUtils.setBackendEnabled(configEntry, true);
        TaskUtils.enableBackend(backendID);
        // It is necessary to retrieve the backend structure again
        // because disabling and enabling it again may have resulted
        // in a new backend being registered to the server.