mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 16:28:21 +08:00
mdbx: minor refine mdbx_page_unspill()
.
Change-Id: I20bbd4c502a2258b945996fa1cf761eab7f88a80
This commit is contained in:
parent
92527a5206
commit
fe386a66df
@ -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 in current txn, this page is no longer spilled.
|
||||||
* If it happens to be the last page, truncate the spill list.
|
* If it happens to be the last page, truncate the spill list.
|
||||||
* Otherwise mark it as deleted by setting the LSB. */
|
* Otherwise mark it as deleted by setting the LSB. */
|
||||||
txn->tw.spill_pages[i] |= 1;
|
|
||||||
if (i == MDBX_PNL_SIZE(txn->tw.spill_pages))
|
if (i == MDBX_PNL_SIZE(txn->tw.spill_pages))
|
||||||
MDBX_PNL_SIZE(txn->tw.spill_pages) -= 1;
|
MDBX_PNL_SIZE(txn->tw.spill_pages) -= 1;
|
||||||
|
else
|
||||||
|
txn->tw.spill_pages[i] |= 1;
|
||||||
} /* otherwise, if belonging to a parent txn, the
|
} /* otherwise, if belonging to a parent txn, the
|
||||||
* page remains spilled until child commits */
|
* page remains spilled until child commits */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user