mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-08 05:24:12 +08:00
mdbx: fix accounting mdbx_cursor_put().
Change-Id: I7e621d62104d2d4e1c8cabf479077369d566f135
This commit is contained in:
parent
e7da946fac
commit
f62bb4b6a7
@ -7974,6 +7974,7 @@ int mdbx_cursor_put(MDBX_cursor *mc, MDBX_val *key, MDBX_val *data,
|
|||||||
xdata.iov_base = &dummy;
|
xdata.iov_base = &dummy;
|
||||||
if ((rc = mdbx_page_alloc(mc, 1, &mp, MDBX_ALLOC_ALL)))
|
if ((rc = mdbx_page_alloc(mc, 1, &mp, MDBX_ALLOC_ALL)))
|
||||||
return rc;
|
return rc;
|
||||||
|
mc->mc_db->md_leaf_pages += 1;
|
||||||
mdbx_cassert(mc, env->me_psize > olddata.iov_len);
|
mdbx_cassert(mc, env->me_psize > olddata.iov_len);
|
||||||
offset = env->me_psize - (unsigned)olddata.iov_len;
|
offset = env->me_psize - (unsigned)olddata.iov_len;
|
||||||
flags |= F_DUPDATA | F_SUBDATA;
|
flags |= F_DUPDATA | F_SUBDATA;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user