mdbx: minor refine mdbx_page_unspill().

Change-Id: I20bbd4c502a2258b945996fa1cf761eab7f88a80
This commit is contained in:
Leonid Yuriev 2020-12-18 14:59:11 +03:00
parent 92527a5206
commit fe386a66df

View File

@ -5662,9 +5662,10 @@ static int __must_check_result mdbx_page_unspill(MDBX_txn *txn, MDBX_page *mp,
/* If in current txn, this page is no longer spilled.
* If it happens to be the last page, truncate the spill list.
* Otherwise mark it as deleted by setting the LSB. */
txn->tw.spill_pages[i] |= 1;
if (i == MDBX_PNL_SIZE(txn->tw.spill_pages))
MDBX_PNL_SIZE(txn->tw.spill_pages) -= 1;
else
txn->tw.spill_pages[i] |= 1;
} /* otherwise, if belonging to a parent txn, the
* page remains spilled until child commits */