mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
ITS#8304 fix page_merge
Was using the pre-touch dst page pointer instead of the touched page
This commit is contained in:
parent
712942d392
commit
5d8f9ddf7e
@ -7733,6 +7733,9 @@ mdb_page_merge(MDB_cursor *csrc, MDB_cursor *cdst)
|
||||
if ((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);
|
||||
|
Loading…
Reference in New Issue
Block a user