[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8489) LMDB: C_EOF not cleared on cursor in mdb_cursor_put
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8489) LMDB: C_EOF not cleared on cursor in mdb_cursor_put
- From: hyc@symas.com
- Date: Wed, 31 Aug 2016 23:44:46 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
juerg.bircher@gmail.com wrote:
> Full_Name: Juerg Bircher
> Version: LMDB (master)
> OS: MacOS / Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (178.82.36.179)
>
>
>
> The function mdb_cursor_put does not clear possibly set C_EOF flag on cursor.
> Therefore an successive mdb_cursor_get call using MDB_NEXT may get an
> MDB_NOTFOUND result even thought not having put the new value at the end of the
> database.
>
> The following example should illustrate the issue:
Thanks for the report, fixed now in mdb.master
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/