From 6d61b1832501dda923595cfe02d39f8d9d32ac0c 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: Sun, 27 Feb 2022 15:42:48 +0300 Subject: [PATCH] mdbx: fix auxiliary `mdbx_txn_valgrind()`. Fixed https://github.com/erthink/libmdbx/issues/273. --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 5c836258..23601d9f 100644 --- a/src/core.c +++ b/src/core.c @@ -7377,7 +7377,7 @@ static void mdbx_txn_valgrind(MDBX_env *env, MDBX_txn *txn) { pgno_t last = MAX_PAGENO + 1; if (env->me_txn0 && env->me_txn0->mt_owner == mdbx_thread_self()) { /* inside write-txn */ - MDBX_meta *head = mdbx_meta_head(env); + const MDBX_meta *head = constmeta_prefer_last(env); last = head->mm_geo.next; } else if (env->me_flags & MDBX_RDONLY) { /* read-only mode, no write-txn, no wlock mutex */