mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:24:13 +08:00
mdbx: fix regression ASAN/Valgring-enabled builds.
This commit is contained in:
parent
29da09328e
commit
2d5438d2c2
@ -7371,7 +7371,7 @@ static void txn_valgrind(MDBX_env *env, MDBX_txn *txn) {
|
||||
pgno_t last = MAX_PAGENO + 1;
|
||||
if (env->me_txn0 && env->me_txn0->mt_owner == osal_thread_self()) {
|
||||
/* inside write-txn */
|
||||
last = meta_recent(env, &env->me_txn0->troika).ptr_v->mm_geo.next;
|
||||
last = meta_recent(env, &env->me_txn0->tw.troika).ptr_v->mm_geo.next;
|
||||
} else if (env->me_flags & MDBX_RDONLY) {
|
||||
/* read-only mode, no write-txn, no wlock mutex */
|
||||
last = NUM_METAS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user