mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-21 09:43:39 -07:00
Merge pull request #7656
5fe22ac
ITS#9496 fix mdb_env_open bug from #8704 (hyc)
This commit is contained in:
commit
215976beba
6
external/db_drivers/liblmdb/mdb.c
vendored
6
external/db_drivers/liblmdb/mdb.c
vendored
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user