OPENDJ-2944 When building the rebuild-index command create a new argument list
Trying to run rebuild-index during upgrade tried to modify a singleton when adding arguments to the command.
Switch to build a new argument list inside the method running rebuild index instead.
| | |
| | | } |
| | | |
| | | private void rebuildIndex(final LocalizableMessage infoMsg, final UpgradeContext context, |
| | | final Set<String> baseDNs, final List<String> args) throws ClientException |
| | | final Set<String> baseDNs, final List<String> baseArgs) throws ClientException |
| | | { |
| | | final ProgressNotificationCallback pnc = new ProgressNotificationCallback(INFORMATION, infoMsg, 25); |
| | | logger.debug(infoMsg); |
| | | context.notifyProgress(pnc); |
| | | |
| | | List<String> args = new ArrayList<>(baseArgs); |
| | | args.add("--configFile"); |
| | | args.add(CONFIG_FILE_PATH); |
| | | for (final String be : baseDNs) |