diff --git a/src/core.c b/src/core.c index 82ab099b..c0d11e5c 100644 --- a/src/core.c +++ b/src/core.c @@ -8918,15 +8918,6 @@ static void __cold mdbx_setup_pagesize(MDBX_env *env, const size_t pagesize) { mdbx_ensure(env, branch_nodemax > 42 && branch_nodemax < (int)UINT16_MAX && branch_nodemax % 2 == 0); env->me_branch_nodemax = (unsigned)branch_nodemax; - env->me_maxkey_nd = (uint16_t)mdbx_limits_keysize_max(pagesize, 0); - env->me_maxkey_ds = (uint16_t)mdbx_limits_keysize_max(pagesize, MDBX_DUPSORT); - env->me_maxval_nd = (unsigned)mdbx_limits_valsize_max(pagesize, 0); - env->me_maxval_ds = (unsigned)mdbx_limits_valsize_max(pagesize, MDBX_DUPSORT); - mdbx_ensure(env, env->me_maxkey_nd == - env->me_branch_nodemax - NODESIZE - sizeof(pgno_t)); - mdbx_ensure(env, env->me_maxkey_ds == - env->me_branch_nodemax - NODESIZE - sizeof(MDBX_db)); - env->me_psize2log = log2n(pagesize); mdbx_assert(env, pgno2bytes(env, 1) == pagesize); mdbx_assert(env, bytes2pgno(env, pagesize + pagesize) == 2); diff --git a/src/internals.h b/src/internals.h index ca0aa937..c14db893 100644 --- a/src/internals.h +++ b/src/internals.h @@ -975,10 +975,8 @@ struct MDBX_env { /* Number of freelist items that can fit in a single overflow page */ unsigned me_maxgc_ov1page; unsigned me_branch_nodemax; /* max size of a branch-node */ - uint16_t me_maxkey_nd, me_maxkey_ds; - unsigned me_maxval_nd, me_maxval_ds; - uint32_t me_live_reader; /* have liveness lock in reader table */ - void *me_userctx; /* User-settable context */ + uint32_t me_live_reader; /* have liveness lock in reader table */ + void *me_userctx; /* User-settable context */ volatile uint64_t *me_sync_timestamp; volatile uint64_t *me_autosync_period; volatile pgno_t *me_unsynced_pages;