mdbx: don't put loose pages into befree in lifo mode.

Change-Id: Ibb409e3447e42f1b9f38ed0a33ecb7715fa54d31
This commit is contained in:
Leo Yuriev 2017-07-23 16:12:12 +03:00
parent ad48fd54fb
commit 1babb0a4f7

View File

@ -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
* we may be unable to return them to me_reclaimed_pglist. */
MDBX_page *mp = txn->mt_loose_pages;