mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: fix accounting mdbx_cursor_del().
Change-Id: I19418e46ac1c692aa4eb346019c3a11539870f94
This commit is contained in:
parent
f62bb4b6a7
commit
676fc941f1
@ -8337,6 +8337,9 @@ int mdbx_cursor_del(MDBX_cursor *mc, unsigned flags) {
|
||||
|
||||
if (leaf->mn_flags & F_SUBDATA) {
|
||||
/* add all the child DB's pages to the free list */
|
||||
mc->mc_db->md_branch_pages -= mc->mc_xcursor->mx_db.md_branch_pages;
|
||||
mc->mc_db->md_leaf_pages -= mc->mc_xcursor->mx_db.md_leaf_pages;
|
||||
mc->mc_db->md_overflow_pages -= mc->mc_xcursor->mx_db.md_overflow_pages;
|
||||
rc = mdbx_drop0(&mc->mc_xcursor->mx_cursor, 0);
|
||||
if (unlikely(rc))
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user