Skip to content
Snippets Groups Projects
Commit 659de5b9 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

Update overflow page count when freeing overflow page

parent aaba119d
No related branches found
No related tags found
No related merge requests found
......@@ -5399,6 +5399,7 @@ mdb_cursor_del0(MDB_cursor *mc, MDB_node *leaf)
memcpy(&pg, NODEDATA(leaf), sizeof(pg));
ovpages = OVPAGES(NODEDSZ(leaf), mc->mc_txn->mt_env->me_psize);
mc->mc_db->md_overflow_pages -= ovpages;
for (i=0; i<ovpages; i++) {
DPRINTF("freed ov page %zu", pg);
mdb_midl_append(&mc->mc_txn->mt_free_pgs, pg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment