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

Ludovic Poitou
21.36.2015 6f8b95863248de31df15db6d77317baf82a2b2c6
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/OnDiskMergeImporter.java
@@ -291,6 +291,11 @@
    private void rebuildIndex(EntryContainer entryContainer, String tmpDirectory, Set<String> indexesToRebuild,
        long totalEntries) throws Exception
    {
      if (indexesToRebuild.isEmpty())
      {
        logger.info(NOTE_REBUILD_NOTHING_TO_REBUILD);
        return;
      }
      rootContainer.getStorage().close();
      final long availableMemory = calculateAvailableMemory();
      final int threadCount = Runtime.getRuntime().availableProcessors();