From f62bb4b6a7246f28ef3727ec4e45ec875952fdb5 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 29 Aug 2018 00:40:01 +0300 Subject: [PATCH] mdbx: fix accounting mdbx_cursor_put(). Change-Id: I7e621d62104d2d4e1c8cabf479077369d566f135 --- src/mdbx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mdbx.c b/src/mdbx.c index 2eea5697..fcb8221a 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -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;