mdbx: fix accounting mdbx_cursor_put().

Change-Id: I7e621d62104d2d4e1c8cabf479077369d566f135
This commit is contained in:
Leonid Yuriev 2018-08-29 00:40:01 +03:00 committed by Leo Yuriev
parent e7da946fac
commit f62bb4b6a7

View File

@ -7974,6 +7974,7 @@ int mdbx_cursor_put(MDBX_cursor *mc, MDBX_val *key, MDBX_val *data,
xdata.iov_base = &dummy;
if ((rc = mdbx_page_alloc(mc, 1, &mp, MDBX_ALLOC_ALL)))
return rc;
mc->mc_db->md_leaf_pages += 1;
mdbx_cassert(mc, env->me_psize > olddata.iov_len);
offset = env->me_psize - (unsigned)olddata.iov_len;
flags |= F_DUPDATA | F_SUBDATA;