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

Nicolas Capponi
03.58.2016 ccd66a6d38f7d3a55a4fddd2945d8ab8920b007e
opendj-server-legacy/src/main/java/org/opends/server/backends/BackupBackend.java
@@ -104,6 +104,9 @@
  /** A cache of BackupDirectories. */
  private HashMap<File,CachedBackupDirectory> backupDirectories;
  /** The server context. */
  private ServerContext serverContext;
  /**
   * To avoid parsing and reparsing the contents of backup.info files, we
   * cache the BackupDirectory for each directory using this class.
@@ -172,6 +175,7 @@
  @Override
  public void configureBackend(BackupBackendCfg config, ServerContext serverContext) throws ConfigException
  {
    this.serverContext = serverContext;
    // Make sure that a configuration entry was provided.  If not, then we will
    // not be able to complete initialization.
    if (config == null)
@@ -232,7 +236,7 @@
    // Register the backup base as a private suffix.
    try
    {
      DirectoryServer.registerBaseDN(backupBaseDN, this, true);
      serverContext.getBackendConfigManager().registerBaseDN(backupBaseDN, this, true);
    }
    catch (Exception e)
    {
@@ -251,7 +255,7 @@
    try
    {
      DirectoryServer.deregisterBaseDN(backupBaseDN);
      serverContext.getBackendConfigManager().deregisterBaseDN(backupBaseDN);
    }
    catch (Exception e)
    {