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

Fabio Pistolesi
22.25.2016 e69422e8141e3551e310919a35ecc56cf69a6935
refs
author Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Wednesday, June 22, 2016 12:25 +0200
committer Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Wednesday, June 22, 2016 16:54 +0200
commite69422e8141e3551e310919a35ecc56cf69a6935
tree 95f5d8752c0659cb721789cdd740fdb8bbccf487 tree | zip | gz
parent aa0713703c4909349969fd5f7a7288f7f61732ab view | diff
OPENDJ-3041 Strictly select the backend where an entry reside taking into account all child backends

A side effect of fixing OPENDJ-2946 is the selection of which backend should contain a given entry.
We were basing the choice on the longest match for the backend, but if there are backends who are
sub-suffixes of another, it does not work.
Revert to scan the list of backends for a match or walking the parent DNs of the entry, depending of which we deem the fastest
2 files modified
83 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElement.java 37 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElementTest.java 46 ●●●●● diff | view | raw | blame | history