From 0e49b1b2b42f79e28592b975f85c5706ffbe1380 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Fri, 26 May 2017 15:11:31 +0300 Subject: [PATCH] mdbx: update 'mapsize' while opening with txn-increment. --- src/mdbx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mdbx.c b/src/mdbx.c index e9b74531..51a6f1ee 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -3917,6 +3917,9 @@ static int __cold mdbx_setup_dxb(MDBX_env *env, int lck_rc) { head->mm_mapsize, env->me_mapsize); meta = *head; meta.mm_mapsize = env->me_mapsize; + meta.mm_txnid += 1; + if (META_IS_STEADY(head)) + meta.mm_datasync_sign = mdbx_meta_sign(&meta); err = mdbx_env_sync_locked(env, env->me_flags & MDBX_WRITEMAP, &meta); if (err) return err;