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

Re: (ITS#8489) LMDB: C_EOF not cleared on cursor in mdb_cursor_put



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/