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

vharseko
18.22.2023 d9ef90b49705daa2223432cd073e9dff39ae3f1b
opendj-server-legacy/src/main/java/org/opends/server/tools/RestoreDB.java
@@ -173,6 +173,7 @@
                      .shortIdentifier('l')
                      .description(INFO_RESTOREDB_DESCRIPTION_LIST_BACKUPS.get())
                      .buildAndAddToParser(argParser);
      verifyOnly =
              BooleanArgument.builder(OPTION_LONG_DRYRUN)
                      .shortIdentifier(OPTION_SHORT_DRYRUN)
@@ -218,10 +219,8 @@
      return 0;
    }
    if (listBackups.isPresent() && !runOffline()) {
      printWrappedText(err, ERR_LDAP_CONN_INCOMPATIBLE_ARGS.get(listBackups.getLongIdentifier()));
      return 1;
    if (listBackups.isPresent()) {
     runOfflineArg.setPresent(true);
    }
    // Checks the version - if upgrade required, the tool is unusable