mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-22 07:48:21 +08:00
mdbx: don't put loose pages into befree in lifo mode.
Change-Id: Ibb409e3447e42f1b9f38ed0a33ecb7715fa54d31
This commit is contained in:
parent
ad48fd54fb
commit
1babb0a4f7
@ -2958,7 +2958,8 @@ again_on_freelist_change:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(!env->me_reclaimed_pglist) && txn->mt_loose_pages) {
|
if (unlikely(!env->me_reclaimed_pglist) && txn->mt_loose_pages &&
|
||||||
|
!(lifo && env->me_last_reclaimed > 1)) {
|
||||||
/* Put loose page numbers in mt_free_pages, since
|
/* Put loose page numbers in mt_free_pages, since
|
||||||
* we may be unable to return them to me_reclaimed_pglist. */
|
* we may be unable to return them to me_reclaimed_pglist. */
|
||||||
MDBX_page *mp = txn->mt_loose_pages;
|
MDBX_page *mp = txn->mt_loose_pages;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user