mdbx: fix assertion inside mdbx_txn_commit_ex() for nested spilled txn.

Change-Id: I54b37ea1b9591bdec9d8bd16d0f57280a1f9ee77
This commit is contained in:
Leonid Yuriev 2020-12-25 14:32:35 +03:00
parent 6ef7b2f588
commit 7bf147d8c2

View File

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