[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8117) Bugs related to key-size in lmdb and backend
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8117) Bugs related to key-size in lmdb and backend
- From: hyc@symas.com
- Date: Thu, 30 Apr 2015 01:13:20 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
Leonid Yuriev wrote:
> 29.04.2015 21:55, Howard Chu пиÑ?еÑ?:
>> Leonid Yuriev wrote:
>>
>>> But what about 5-bytes keys from indexer?
>>> - How ones should be compared, as a 4-byte int without MSB, or as a
>>> padded 8-byte long?
>>
>> The indexer doesn't use MDB_INTEGER so your question is irrelevant.
>>
> OK, but then - what is the purpose of MDB_INTEGERDUP in
> mdb_attr_dbs_open()?
>
> flags = MDB_DUPSORT|MDB_DUPFIXED|MDB_INTEGERDUP;
> if ( !(slapMode & SLAP_TOOL_READONLY) )
> flags |= MDB_CREATE;
>
> Think it is not necessary, is it?
You really think so? Have you thought about what the actual *values* are
in an index, instead of just the keys?
Anyway, this ITS is resolved. Thank you for reporting the bug. If you
want to ask further questions about how the indexer works take it to
openldap-devel.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/