[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LMDB: mdb_cursor_put() and the rest of page in case MDB_RESERVE
- To: Howard Chu <hyc@symas.com>
- Subject: Re: LMDB: mdb_cursor_put() and the rest of page in case MDB_RESERVE
- From: Леонид Юрьев <leo@yuriev.ru>
- Date: Wed, 30 Mar 2016 20:25:53 +0300
- Cc: Howard Chu <hyc@openldap.org>, "OpenLDAP-devel@openldap.org >> OpenLDAP Devel" <openldap-devel@openldap.org>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuriev-ru.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=DC2FQkRTN3jdvzDKiHwug0VOJvyHQfLtp4dg+9oEAus=; b=NKeCrOCapn5F1lH9xQ2rbiXZapnhW7uJmxxfjxtvfMXw0BsASpXLBne0fWdMr5VIkO bAlfmBFzdRn5tGurBbp+5I04M+hd82/MGMNLykF+OzICeBgZbKbBz3Ou/Q7/ZLv9Q//e up3tGc2kMBbd/4ThDcWToCJ6lSTLvsWK79yittVvdzLEChohIODaDerG11nyF8ZLxeFt 3Yu4TUSFV//2CpIGf3m+ivHpv5XByouGZt2JNLXFIRWGJy60XbxOAMWnkS7Ce5EY/08M zSpQCzjf4ApU5Z8PniqukU9SlfvAhx3DBNri2jvcBwA6KiVXfX+t614S2htyLEU7agvZ Vf2w==
- In-reply-to: <56FC02E2.50809@symas.com>
- References: <CAO2+NUCnpmw_CQY516=5spoMDv8vuqLxfyTeWovK+vopX1-XvA@mail.gmail.com> <56FC02E2.50809@symas.com>
2016-03-30 19:46 GMT+03:00 Howard Chu <hyc@symas.com>:
> Леонид Юрьев 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.
>
Yes, it's obvious. But I asked not about of a user data.
In other words - why we should copy or not copy an end of page in
dependence from MDB_RESERVE?
>> 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/