From 26767a5e06098b126fddc44d3d47b68678900686 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 18 Nov 2020 03:38:02 +0300 Subject: [PATCH] mdbx: relax big-page size checking for compatibility. i.e. allow an overflow page be larger than required by placed data. --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index d9ddad50..01e8f31f 100644 --- a/src/core.c +++ b/src/core.c @@ -15383,7 +15383,7 @@ static __cold int mdbx_page_check(MDBX_cursor *const mc, lp->mp_pgno); continue; } - if (unlikely(number_of_ovpages(env, dsize) != lp->mp_pages)) + if (unlikely(number_of_ovpages(env, dsize) > lp->mp_pages)) rc = bad_page(mp, "big-node size (%zu) mismatch n-pages size (%u)\n", dsize, lp->mp_pages);