From 7ab9d24d3b7bd3eec4e78288cfc890aac8580792 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 8 Jun 2020 18:51:40 +0300 Subject: [PATCH] mdbx: fix env_set_geometry() for opened-env + outside-txn case. Change-Id: I4526aa8011895ef7b5529995503966117c37e107 --- src/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core.c b/src/core.c index eb7da7e5..6176b408 100644 --- a/src/core.c +++ b/src/core.c @@ -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);