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

coulbeck
12.27.2007 35af51f9683f5ef8cec66baca7b89aa1e1cbc44e
opends/src/server/org/opends/server/tasks/RestoreTask.java
@@ -250,10 +250,10 @@
    // Get the DN of the backend configuration entry from the backup.
    DN configEntryDN = backupDir.getConfigEntryDN();
    // Get the backend configuration entry.
    ConfigEntry configEntry;
    try
    {
      // Get the backend configuration entry.
      configEntry = DirectoryServer.getConfigEntry(configEntryDN);
    }
    catch (ConfigException e)
@@ -298,7 +298,7 @@
    // Disable the backend.
    try
    {
      TaskUtils.setBackendEnabled(configEntry, false);
      TaskUtils.disableBackend(backendID);
    }
    catch (DirectoryException e)
    {
@@ -325,7 +325,7 @@
          // Perform the restore.
          try
          {
            backend.restoreBackup(configEntry, restoreConfig);
            backend.restoreBackup(restoreConfig);
          }
          catch (DirectoryException de)
          {
@@ -363,7 +363,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.