OPENDJ-2570 - rebuild-index --rebuildDegraded fails if no indexes are degraded.
OnDiskMergeImporter.java : Detect an empty index list and log a message.
| | |
| | | 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(); |
| | |
| | | ERR_VERIFY_ID2COUNT_WRONG_COUNT_596=File id2childrenCount has wrong number of \ |
| | | children for DN <%s> (got %d, expecting %d) |
| | | ERR_VERIFY_ID2COUNT_WRONG_ID_597=File id2ChildrenCount references non-existing EntryID <%d>. |
| | | NOTE_REBUILD_NOTHING_TO_REBUILD_598=Rebuilding index finished: no indexes to rebuild. |