mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 16:22:07 +08:00
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:
parent
b47a44582a
commit
26767a5e06
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user