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

Jean-Noël Rouvignac
14.27.2016 7028d9f1483d6f1e77bb0f5ebd0ecc6239e431c5
opendj-server-legacy/src/main/java/org/opends/server/backends/BackupBackend.java
@@ -336,8 +336,9 @@
    if (backupBaseDN.equals(entryDN))
    {
      long count = 0;
      for (File dir : backupDirectories.keySet())
      for (Map.Entry<File, CachedBackupDirectory> entry : backupDirectories.entrySet())
      {
        File dir = entry.getKey();
        // Check to see if the descriptor file exists.  If not, then skip this
        // backup directory.
        File descriptorFile = new File(dir, BACKUP_DIRECTORY_DESCRIPTOR_FILE);
@@ -353,8 +354,8 @@
          count++;
          try
          {
            BackupDirectory backupDirectory = backupDirectories.get(dir).getBackupDirectory();
            count += backupDirectory.getBackups().keySet().size();
            BackupDirectory backupDirectory = entry.getValue().getBackupDirectory();
            count += backupDirectory.getBackups().size();
          }
          catch (Exception e)
          {
@@ -390,7 +391,7 @@
        {
          File dir = new File(v.toString());
          BackupDirectory backupDirectory = backupDirectories.get(dir).getBackupDirectory();
          count += backupDirectory.getBackups().keySet().size();
          count += backupDirectory.getBackups().size();
        }
        catch (Exception e)
        {