Commit 12ee1a2d authored by Hallvard Furuseth's avatar Hallvard Furuseth Committed by Howard Chu
Browse files

Use mdb_page_loose() more

parent 0e17ba43
...@@ -9493,7 +9493,7 @@ mdb_rebalance(MDB_cursor *mc) ...@@ -9493,7 +9493,7 @@ mdb_rebalance(MDB_cursor *mc)
mc->mc_db->md_root = P_INVALID; mc->mc_db->md_root = P_INVALID;
mc->mc_db->md_depth = 0; mc->mc_db->md_depth = 0;
mc->mc_db->md_leaf_pages = 0; mc->mc_db->md_leaf_pages = 0;
rc = mdb_midl_append(&mc->mc_txn->mt_free_pgs, mp->mp_pgno); rc = mdb_page_loose(mc, mp);
if (rc) if (rc)
return rc; return rc;
/* Adjust cursors pointing to mp */ /* Adjust cursors pointing to mp */
...@@ -9521,7 +9521,7 @@ mdb_rebalance(MDB_cursor *mc) ...@@ -9521,7 +9521,7 @@ mdb_rebalance(MDB_cursor *mc)
} else if (IS_BRANCH(mp) && NUMKEYS(mp) == 1) { } else if (IS_BRANCH(mp) && NUMKEYS(mp) == 1) {
int i; int i;
DPUTS("collapsing root page!"); DPUTS("collapsing root page!");
rc = mdb_midl_append(&mc->mc_txn->mt_free_pgs, mp->mp_pgno); rc = mdb_page_loose(mc, mp);
if (rc) if (rc)
return rc; return rc;
mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0)); mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment