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

Jean-Noël Rouvignac
17.40.2016 27241fa0824e9b50548e969485436a4c92ad5ae9
opendj-server-legacy/src/main/java/org/opends/server/tasks/RestoreTask.java
@@ -29,7 +29,6 @@
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.i18n.slf4j.LocalizedLogger;
import org.forgerock.opendj.config.server.ConfigException;
import org.forgerock.opendj.ldap.ResultCode;
import org.opends.messages.Severity;
import org.opends.messages.TaskMessages;
@@ -251,20 +250,17 @@
    Entry configEntry;
    try
    {
      // Get the backend configuration entry.
      configEntry = DirectoryServer.getConfigEntry(configEntryDN);
      configEntry = DirectoryServer.getEntry(configEntryDN);
    }
    catch (ConfigException e)
    catch (DirectoryException e)
    {
      logger.traceException(e);
      logger.error(ERR_RESTOREDB_NO_BACKENDS_FOR_DN, backupDirectory, configEntryDN);
      return TaskState.STOPPED_BY_ERROR;
    }
    // Get the backend ID from the configuration entry.
    String backendID = TaskUtils.getBackendID(configEntry);
    // Get the backend.
    Backend<?> backend = DirectoryServer.getBackend(backendID);
    if (!backend.supports(BackendOperation.RESTORE))
    {