]> git.sur5r.net Git - openldap/blobdiff - libraries/liblmdb/mdb.c
ITS#8304 fix page_merge
[openldap] / libraries / liblmdb / mdb.c
index 3df4a1d2f43c368de9a36863affea64eb972f207..98c73830e03dd0ec7c65c43421585c1501d852a7 100644 (file)
@@ -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);