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

Gaetan Boismal
13.59.2016 48deac6f808690e620a5444398c938dc8ef2a970
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java
@@ -766,6 +766,22 @@
    return indexesToRebuild;
  }
  /** Returns {@code true} if the installed instance contains at least one JE backend. */
  static boolean instanceContainsJeBackends()
  {
    final SearchRequest sr = Requests.newSearchRequest(
            "", SearchScope.WHOLE_SUBTREE, "(objectclass=ds-cfg-je-backend)", "dn");
    try (final EntryReader entryReader = searchConfigFile(sr))
    {
      return entryReader.hasNext();
    }
    catch (final IOException unlikely)
    {
      logger.error(ERR_UPGRADE_READING_CONF_FILE.get(unlikely.getMessage()));
      return true;
    }
  }
  /** Prevent instantiation. */
  private UpgradeUtils()
  {