mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:24:12 +08:00
mdbx: fix Valgrind minor warning with MDBX_DEBUG > 1.
Change-Id: Idb93c6a3843e76071a55cbd6c34ddd22541c77d3
This commit is contained in:
parent
68241762e7
commit
c2c74075e7
@ -3999,11 +3999,12 @@ static int mdbx_page_loose(MDBX_txn *txn, MDBX_page *mp) {
|
|||||||
return MDBX_SUCCESS;
|
return MDBX_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mp->mp_pgno = pgno;
|
||||||
mp->mp_flags = P_LOOSE | P_DIRTY;
|
mp->mp_flags = P_LOOSE | P_DIRTY;
|
||||||
mp->mp_next = txn->tw.loose_pages;
|
mp->mp_next = txn->tw.loose_pages;
|
||||||
txn->tw.loose_pages = mp;
|
txn->tw.loose_pages = mp;
|
||||||
txn->tw.loose_count++;
|
txn->tw.loose_count++;
|
||||||
if (unlikely(txn->mt_next_pgno == mp->mp_pgno + 1))
|
if (unlikely(txn->mt_next_pgno == pgno + 1))
|
||||||
mdbx_refund(txn);
|
mdbx_refund(txn);
|
||||||
|
|
||||||
return MDBX_SUCCESS;
|
return MDBX_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user