mdbx: fix Valgrind minor warning with MDBX_DEBUG > 1.

Change-Id: Idb93c6a3843e76071a55cbd6c34ddd22541c77d3
This commit is contained in:
Leonid Yuriev 2020-05-14 01:07:56 +03:00
parent 68241762e7
commit c2c74075e7

View File

@ -3999,11 +3999,12 @@ static int mdbx_page_loose(MDBX_txn *txn, MDBX_page *mp) {
return MDBX_SUCCESS;
}
mp->mp_pgno = pgno;
mp->mp_flags = P_LOOSE | P_DIRTY;
mp->mp_next = txn->tw.loose_pages;
txn->tw.loose_pages = mp;
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);
return MDBX_SUCCESS;