summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorHallvard Furuseth <hallvard@openldap.org>2016-05-10 07:11:44 +0200
committerHallvard Furuseth <hallvard@openldap.org>2016-05-10 07:11:44 +0200
commite2b8b6448de7de5229a44e18c224e3a670da4bdc (patch)
tree6b1ef6e31ca7e14e9b16bae25812a129b9da300d /libraries
parenta04aad31c248401694d49d4c041db26d8b7ac310 (diff)
downloadlmdb-e2b8b6448de7de5229a44e18c224e3a670da4bdc.tar.gz
lmdb-e2b8b6448de7de5229a44e18c224e3a670da4bdc.tar.bz2
lmdb-e2b8b6448de7de5229a44e18c224e3a670da4bdc.zip
Comment ovpage code in mdb_cursor_put()
Diffstat (limited to 'libraries')
-rw-r--r--libraries/liblmdb/mdb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c
index 72294a7..f3ca427 100644
--- a/libraries/liblmdb/mdb.c
+++ b/libraries/liblmdb/mdb.c
@@ -7468,8 +7468,13 @@ current:
/* Note - this page is already counted in parent's dirty_room */
rc2 = mdb_mid2l_insert(mc->mc_txn->mt_u.dirty_list, &id2);
mdb_cassert(mc, rc2 == 0);
+ /* Currently we make the page look as with put() in the
+ * parent txn, in case the user peeks at MDB_RESERVEd
+ * or unused parts. Some users treat ovpages specially.
+ */
if (!(flags & MDB_RESERVE)) {
- /* Copy end of page, adjusting alignment so
+ /* Skip the part where LMDB will put *data.
+ * Copy end of page, adjusting alignment so
* compiler may copy words instead of bytes.
*/
off = (PAGEHDRSZ + data->mv_size) & -sizeof(size_t);