[Date Prev][Date Next]
Re: (ITS#8355) [lmdb] Issues with sorted duplicate DBs with cursor delete
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8355) [lmdb] Issues with sorted duplicate DBs with cursor delete
- From: email@example.com
- Date: Mon, 25 Jan 2016 06:14:32 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
On Monday, January 25, 2016 03:49 AM, Howard Chu wrote:
> HLaw wrote:
>> On Sunday, January 24, 2016 07:44 PM, Howard Chu wrote:
>>> firstname.lastname@example.org wrote:
>>>> Full_Name: H Law
>>>> Version: LMDB
>>>> OS: Linux
>>>> Submission from: (NULL) (22.214.171.124)
>>>> It seems that, after using a cursor delete during a cursor
>>>> traversal on a dup
>>>> sort database, the cursor is in a strange state, when MDB_NEXT /
>>>> ceases to work properly while MDB_PREV / MDB_PREV_DUP still
>>> Thanks for the report. Fixed now in git.
>> Thank you. It now works except for the case when the deleted record
>> is just
>> before the end of the database.
>> In this case the next call to cursor get with MDB_NEXT / MDB_NEXT_DUP
>> still hang the program, instead of returning not found (or other
>> errors). (It
>> seems to be stuck at some wait state without heavy cpu usage).
> Your test program is broken, you are trying to create a new write txn
> in the same thread as an existing write txn.
Yes, thanks, works after fixing that. Sorry for bothering.