From 963da34412c86ef0e7f75ae76c4cb34f3ef1a2e3 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Tue, 9 Jan 2018 15:37:27 +0300 Subject: [PATCH] mdbx: fix mdbx_env_set_geometry(). --- src/mdbx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mdbx.c b/src/mdbx.c index b51d648b..92ce6ee3 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -4704,6 +4704,7 @@ LIBMDBX_API int mdbx_env_set_geometry(MDBX_env *env, intptr_t size_lower, rc = mdbx_mapresize(env, meta.mm_geo.now, meta.mm_geo.upper); if (unlikely(rc != MDBX_SUCCESS)) goto bailout; + head = /* base address could be changed */ mdbx_meta_head(env); } env->me_sync_pending += env->me_psize; mdbx_meta_set_txnid(env, &meta, mdbx_meta_txnid_stable(env, head) + 1);