mdbx: fix env_set_geometry() for opened-env + outside-txn case.

Change-Id: I4526aa8011895ef7b5529995503966117c37e107
This commit is contained in:
Leonid Yuriev 2020-06-08 18:51:40 +03:00
parent 03cc19babb
commit 7ab9d24d3b

View File

@ -9183,6 +9183,7 @@ mdbx_env_set_geometry(MDBX_env *env, intptr_t size_lower, intptr_t size_now,
env->me_txn->mt_geo = new_geo;
env->me_txn->mt_flags |= MDBX_TXN_DIRTY;
} else {
meta.mm_geo = new_geo;
mdbx_meta_set_txnid(
env, &meta, safe64_txnid_next(mdbx_meta_txnid_stable(env, head)));
rc = mdbx_sync_locked(env, env->me_flags, &meta);