mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:28:21 +08:00
mdbx: fix assertion inside mdbx_txn_commit_ex()
for nested spilled txn.
Change-Id: I54b37ea1b9591bdec9d8bd16d0f57280a1f9ee77
This commit is contained in:
parent
6ef7b2f588
commit
7bf147d8c2
@ -8331,7 +8331,7 @@ int mdbx_txn_commit_ex(MDBX_txn *txn, MDBX_commit_latency *latency) {
|
||||
if (likely(src->length > 0) && parent->tw.spill_pages &&
|
||||
MDBX_PNL_SIZE(parent->tw.spill_pages) > 0) {
|
||||
const MDBX_PNL sp = parent->tw.spill_pages;
|
||||
assert(mdbx_pnl_check4assert(sp, txn->mt_next_pgno));
|
||||
mdbx_tassert(txn, mdbx_pnl_check4assert(sp, txn->mt_next_pgno << 1 | 1));
|
||||
|
||||
/* Mark our dirty pages as deleted in parent spill list */
|
||||
size_t r, w, i = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user