mdbx: backport - ITS#8304 fix page_merge (mdb_del cursor tracking).

Was using the pre-touch dst page pointer instead of the touched page

Change-Id: Ib41af356dcf883b923dbfbbc7591a02483ee54dd
This commit is contained in:
Howard Chu 2015-11-09 20:09:10 +00:00 committed by Leo Yuriev
parent ee26517b5d
commit ab0b0ec7ce
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ LMDB 0.9.17 Release Engineering
Fix ITS#8264 cursor_del cursor tracking
Fix ITS#8299 mdb_del cursor tracking
Fix ITS#8300 mdb_del cursor tracking
Fix ITS#8304 mdb_del cursor tracking
Fix ITS#7771 fakepage cursor tracking
Fix ITS#7789 ensure mapsize >= pages in use
Fix ITS#7971 mdb_txn_renew0() new reader slots

3
mdb.c
View File

@ -7875,6 +7875,9 @@ mdb_page_merge(MDB_cursor *csrc, MDB_cursor *cdst)
if (unlikely(rc = mdb_page_touch(cdst)))
return rc;
/* get dst page again now that we've touched it. */
pdst = cdst->mc_pg[cdst->mc_top];
/* Move all nodes from src to dst.
*/
j = nkeys = NUMKEYS(pdst);