[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5183) Index problem with ;x- attributes.



ando@sys-net.it wrote:
> Magnus.Jonsson@umdac.umu.se wrote:
>> Full_Name: Magnus Jonsson
>> Version: 2.3.38
>> OS: Debian GNU/linux  â??Etchâ??
>> URL: http://foo.fot.nu/reproduce.txt
>> Submission from: (NULL) (130.239.200.171)

>> We are using ;x- attributes in a specific appliation to group some attributes.
>>
>> When removing a ;x- attrbute all the indexs for that attribute disapears.
>>
>> example:
>>
>> cn: index
>> cn;x-f-1: index
>> cn;x-f-2: index
>>
>> If a remove the cn;x-f-1 attribute I can't search for (cn=index) anymore.
> 
> I confirm your report, except that if the type and all subtypes have the
> same value, and if I remove the "cn;x-f-1" value, I can no longer search
> for "cn" equality, but I can still search for "cn;x-f-2".

This seems to be an old problem resurfacing, hash collisions in the index 
where multiple values hash to the same index slot. We either need to use 
ref-counts, or we just quit deleting index values at runtime, and require an 
explicit garbage-collection pass of some kind to regenerate indices.

-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP     http://www.openldap.org/project/