From de8d0479ab49d3f46ff059cda88d0c7f5c1f2da3 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 5 Nov 2018 00:18:41 +0300 Subject: [PATCH] mdbx: backport - fix typo in mdbx_limits_dbsize_max(). Change-Id: Ie55e3ca108ac6aab9a41d65f316a3d5ff5ff6f1f --- src/mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index 7dd1053b..dba5f612 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -12518,7 +12518,7 @@ __cold intptr_t mdbx_limits_dbsize_max(intptr_t pagesize) { const uint64_t limit = MAX_PAGENO * (uint64_t)pagesize; return (limit < (intptr_t)MAX_MAPSIZE) ? (intptr_t)limit - : (intptr_t)MAX_PAGESIZE; + : (intptr_t)MAX_MAPSIZE; } /*----------------------------------------------------------------------------*/