From 329af93436f4a91a2fb626d09824276f38c346e4 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, 10 Oct 2022 19:22:58 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D1=83=D0=BC=D0=B5=D0=BD=D1=8C=D1=88?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B2=2042=20=D1=80=D0=B0=D0=B7?= =?UTF-8?q?=D0=B0=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BF=D0=BE-=D1=83=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8E=20=D0=B4=D0=BB=D1=8F=20`me=5Foptions.dp=5Flimit`=20?= =?UTF-8?q?=D0=B2=20=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BE=D1=87=D0=BD=D1=8B?= =?UTF-8?q?=D1=85=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B0=D1=85.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index c0291d5d..7f427fa6 100644 --- a/src/core.c +++ b/src/core.c @@ -11837,7 +11837,7 @@ __cold int mdbx_env_create(MDBX_env **penv) { env->me_options.dp_reserve_limit = 1024; env->me_options.rp_augment_limit = 256 * 1024; - env->me_options.dp_limit = 64 * 1024; + env->me_options.dp_limit = MDBX_DEBUG ? 64 * 1024 / 42 : 64 * 1024; if (env->me_options.dp_limit > MAX_PAGENO + 1 - NUM_METAS) env->me_options.dp_limit = MAX_PAGENO + 1 - NUM_METAS; env->me_options.dp_initial = MDBX_PNL_INITIAL;