mdbx: relax big-page size checking for compatibility.

i.e. allow an overflow page be larger than required by placed data.
This commit is contained in:
Leonid Yuriev 2020-11-18 03:38:02 +03:00
parent b47a44582a
commit 26767a5e06

View File

@ -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);