ITS#9496 fix mdb_env_open bug from #8704

Broken in 9c6eb75c65
This commit is contained in:
Howard Chu 2021-04-09 14:21:15 +01:00
parent f6e63ef260
commit 6305b90596
No known key found for this signature in database
GPG Key ID: FD2A70B44AB11BA7
1 changed files with 3 additions and 3 deletions

View File

@ -4882,9 +4882,6 @@ mdb_env_open2(MDB_env *env, int prev)
#endif #endif
env->me_maxpg = env->me_mapsize / env->me_psize; env->me_maxpg = env->me_mapsize / env->me_psize;
if (env->me_txns)
env->me_txns->mti_txnid = meta.mm_txnid;
#if MDB_DEBUG #if MDB_DEBUG
{ {
MDB_meta *meta = mdb_env_pick_meta(env); MDB_meta *meta = mdb_env_pick_meta(env);
@ -4984,6 +4981,9 @@ static int ESECT
mdb_env_share_locks(MDB_env *env, int *excl) mdb_env_share_locks(MDB_env *env, int *excl)
{ {
int rc = 0; int rc = 0;
MDB_meta *meta = mdb_env_pick_meta(env);
env->me_txns->mti_txnid = meta->mm_txnid;
#ifdef _WIN32 #ifdef _WIN32
{ {