From 68991428722c8bf15d2bcff7fff8173926cc2255 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: Mon, 16 Jan 2023 21:12:34 +0300 Subject: [PATCH] mdbx: remove extra assertion (backport). The removed assertion could be triggered in debug builds when a reading and writing transactions are overlapped simultaneously with a change of DB size. There were no other negative consequences. --- src/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core.c b/src/core.c index d7762bd9..f0e0502c 100644 --- a/src/core.c +++ b/src/core.c @@ -6328,7 +6328,6 @@ __cold static int mdbx_mapresize(MDBX_env *env, const pgno_t used_pgno, bailout: if (rc == MDBX_SUCCESS) { - mdbx_assert(env, size_bytes == env->me_dxb_mmap.current); mdbx_assert(env, size_bytes <= env->me_dxb_mmap.filesize); mdbx_assert(env, limit_bytes == env->me_dxb_mmap.limit); #ifdef MDBX_USE_VALGRIND