diff options
author | Howard Chu <hyc@symas.com> | 2021-04-09 14:21:15 +0100 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2021-04-09 14:25:51 +0100 |
commit | 6305b90596dae25515e0d9afd8ad6bc6f8f4b59e (patch) | |
tree | b7d77cce0aa32b0e32ac5551630ef09717662e4f /external/db_drivers/liblmdb | |
parent | Merge pull request #7647 (diff) | |
download | monero-6305b90596dae25515e0d9afd8ad6bc6f8f4b59e.tar.xz |
ITS#9496 fix mdb_env_open bug from #8704
Broken in 9c6eb75c656363176a55c63c81803feb3cfa614d
Diffstat (limited to '')
-rw-r--r-- | external/db_drivers/liblmdb/mdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c index 96c741f66..6314d5775 100644 --- a/external/db_drivers/liblmdb/mdb.c +++ b/external/db_drivers/liblmdb/mdb.c @@ -4882,9 +4882,6 @@ mdb_env_open2(MDB_env *env, int prev) #endif env->me_maxpg = env->me_mapsize / env->me_psize; - if (env->me_txns) - env->me_txns->mti_txnid = meta.mm_txnid; - #if MDB_DEBUG { MDB_meta *meta = mdb_env_pick_meta(env); @@ -4984,6 +4981,9 @@ static int ESECT mdb_env_share_locks(MDB_env *env, int *excl) { int rc = 0; + MDB_meta *meta = mdb_env_pick_meta(env); + + env->me_txns->mti_txnid = meta->mm_txnid; #ifdef _WIN32 { |