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

Matthew Swift
07.45.2015 20fdcbef0d17440c367d2943f9c5799bddfe661f
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java
@@ -503,13 +503,13 @@
    if (timeLimit > 0)
    {
      // Get a list of all the databases used by the backend.
      ArrayList<DatabaseContainer> dbList = new ArrayList<DatabaseContainer>();
      final List<DatabaseContainer> databases = new ArrayList<DatabaseContainer>();
      for (EntryContainer ec : entryContainers.values())
      {
        ec.sharedLock.lock();
        try
        {
          ec.listDatabases(dbList);
          databases.addAll(ec.listDatabases());
        }
        finally
        {
@@ -518,7 +518,7 @@
      }
      // Sort the list in order of priority.
      Collections.sort(dbList, new DbPreloadComparator());
      Collections.sort(databases, new DbPreloadComparator());
      // Preload each database until we reach the time limit or the cache
      // is filled.