mdbx: drop internal unused fields.

Change-Id: I634d3e0695f300df79129a15da752a23b277a0ce
This commit is contained in:
Leonid Yuriev 2020-09-02 15:29:33 +03:00
parent 06a8cb1e5a
commit cd4f732a87
2 changed files with 2 additions and 13 deletions

View File

@ -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 && mdbx_ensure(env, branch_nodemax > 42 && branch_nodemax < (int)UINT16_MAX &&
branch_nodemax % 2 == 0); branch_nodemax % 2 == 0);
env->me_branch_nodemax = (unsigned)branch_nodemax; 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); env->me_psize2log = log2n(pagesize);
mdbx_assert(env, pgno2bytes(env, 1) == pagesize); mdbx_assert(env, pgno2bytes(env, 1) == pagesize);
mdbx_assert(env, bytes2pgno(env, pagesize + pagesize) == 2); mdbx_assert(env, bytes2pgno(env, pagesize + pagesize) == 2);

View File

@ -975,10 +975,8 @@ struct MDBX_env {
/* Number of freelist items that can fit in a single overflow page */ /* Number of freelist items that can fit in a single overflow page */
unsigned me_maxgc_ov1page; unsigned me_maxgc_ov1page;
unsigned me_branch_nodemax; /* max size of a branch-node */ unsigned me_branch_nodemax; /* max size of a branch-node */
uint16_t me_maxkey_nd, me_maxkey_ds; uint32_t me_live_reader; /* have liveness lock in reader table */
unsigned me_maxval_nd, me_maxval_ds; 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_sync_timestamp;
volatile uint64_t *me_autosync_period; volatile uint64_t *me_autosync_period;
volatile pgno_t *me_unsynced_pages; volatile pgno_t *me_unsynced_pages;