diff --git a/src/mdbx.c b/src/mdbx.c index 143a4e57..95ed2c6c 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -13498,7 +13498,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; } __cold intptr_t mdbx_limits_txnsize_max(intptr_t pagesize) {