mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 03:24:12 +08:00
mdbx: fix extra assertion inside override_meta()
(backport).
This commit is contained in:
parent
d504ca1747
commit
24df8073ac
@ -12824,7 +12824,8 @@ __cold static int __must_check_result mdbx_override_meta(
|
||||
mdbx_meta_model(env, page, target);
|
||||
MDBX_meta *const model = page_meta(page);
|
||||
meta_set_txnid(env, model, txnid);
|
||||
mdbx_assert(env, meta_checktxnid(env, model, true));
|
||||
if (txnid)
|
||||
mdbx_assert(env, meta_checktxnid(env, model, true));
|
||||
if (shape) {
|
||||
if (txnid && unlikely(!meta_checktxnid(env, shape, false))) {
|
||||
mdbx_error("bailout overriding meta-%u since model failed "
|
||||
|
Loading…
x
Reference in New Issue
Block a user