[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LMDB: mdb_cursor_put() and the rest of page in case MDB_RESERVE
- To: Леонид Юрьев <leo@yuriev.ru>, "OpenLDAP-devel@openldap.org >> OpenLDAP Devel" <openldap-devel@openldap.org>
- Subject: Re: LMDB: mdb_cursor_put() and the rest of page in case MDB_RESERVE
- From: Howard Chu <hyc@symas.com>
- Date: Wed, 30 Mar 2016 17:46:26 +0100
- Cc: Howard Chu <hyc@openldap.org>
- In-reply-to: <CAO2+NUCnpmw_CQY516=5spoMDv8vuqLxfyTeWovK+vopX1-XvA@mail.gmail.com>
- References: <CAO2+NUCnpmw_CQY516=5spoMDv8vuqLxfyTeWovK+vopX1-XvA@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 SeaMonkey/2.42a1
Леонид Юрьев wrote:
Hi, Howard.
Why mdb_cursor_put() doesn't copy the rest of page in case MDB_RESERVE?
For MDB_RESERVE the caller is going to supply their own data later, so nothing
on the page is valid data.
It is here (current mdb.master, mdb.c line 7479)
= http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=blob;f=libraries/liblmdb/mdb.c;h=acab07b8294ad9036267be6d40ac19933f669fab;hb=8fff90db7ed1e650395f39f9e8b22673aa74aa2b#l7479
Regards,
Leonid.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/