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

Yannick Lecaillez
05.38.2016 eeed545264e26d4f8d417047adc77432a30e968a
refs
author Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Wednesday, October 5, 2016 11:38 +0200
committer Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Tuesday, October 11, 2016 15:27 +0200
commiteeed545264e26d4f8d417047adc77432a30e968a
tree 5c530b1792c7a1e20071da95462b0f17b4c9e818 tree | zip | gz
parent 3f68b466b8572030bb049a363809ab9c532032f2 view | diff
OPENDJ-3230-3223: upgrade to 3.5.0 should rebuild indexes using DN
syntax

Allow more flexibility on how to specify the indexes to rebuild.
Rebuild-index is now accepting the format
(attributeType)((.indexType)|(.matchingRuleName)).
This allows to rebuild all indexes for a given attributeType (i.e: "cn")
but also all indexes for a given index type (i.e: ".substring) or
matching rule (i.e: ".caseIgnoreSubstringMatch) and also a combination
of both (i.e: "cn.substring" or "cn.caseIgnoreSubstringsMatch")

Update upgrade tasks so that the rebuild-index performed during upgrades
only reference matchingRules rather than hard-coded attributes.
8 files modified
621 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/AttributeIndex.java 16 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/BackendImpl.java 4 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/OnDiskMergeImporter.java 393 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/SuffixContainer.java 2 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/Upgrade.java 3 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java 10 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java 32 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/backends/pluggable/OnDiskMergeImporterTest.java 161 ●●●●● diff | view | raw | blame | history