From 2d5438d2c2f87656fd0a7139c02ceeb32c0cb38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 6 Sep 2022 13:01:17 +0300 Subject: [PATCH] mdbx: fix regression ASAN/Valgring-enabled builds. --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 4047e4b8..8917040e 100644 --- a/src/core.c +++ b/src/core.c @@ -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;