mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
Update overflow page count when freeing overflow page
This commit is contained in:
parent
c7da506dd2
commit
25e8e82c5f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue