diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2009-08-10 17:36:36 -0700 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2009-08-12 12:47:35 -0600 |
commit | 4c6e71f2ca72c51c8f6a4e5cfda7fa577f7140dc (patch) | |
tree | ef915846a0f186689d96d7ef55a273d2986a2530 /man/man1/ldap-agent.1 | |
parent | 2e2389eb376200950e3231428be8be83e2da35e5 (diff) | |
download | ds-4c6e71f2ca72c51c8f6a4e5cfda7fa577f7140dc.tar.gz ds-4c6e71f2ca72c51c8f6a4e5cfda7fa577f7140dc.tar.xz ds-4c6e71f2ca72c51c8f6a4e5cfda7fa577f7140dc.zip |
506786 Index maintenance mechanism causes wrong search results when
modifying attributes with subtypes
When there are identical attribute value pairs except subtypes exist
in an entry, if one of the pairs are deleted, it should not affect the
index the attribute value is the key.
e.g.,
mail: abc
mail;en: abc
mail;fr: xyz
removing mail=abc or mail;en=abc, should not remove =abc from the
mail.db#.
This fix uses the value array evals to determine if the equality key
in the index should be deleted or not. The value array evals stores
the values of the attribute in the entry after the deletion is done.
If evals is empty, it means the to-be-deleted attribute value pair is
the only pair in the entry. Thus, the equality key can be removed fom
the index.
If evals has values, then the to-be-deleted attribute (curr_attr,
which was retrieved from the old entry) value needs to be checked if
it's in evals or not. If it is in evals, the equality key is still
used by other pair(s). So, leave it. Otherwise, the key can be
removed.
In the above example, let's assume removing mail=abc. evals holds
{"abc", "xyz"}. curr_attr abc is in evals, thus =abc will not be
removed.
Diffstat (limited to 'man/man1/ldap-agent.1')
0 files changed, 0 insertions, 0 deletions