mdbx: fix update_gc() assertion.

Change-Id: I433382de0ddab41ad1530ee674ed22f9003c2779
This commit is contained in:
Leonid Yuriev 2018-09-18 20:50:47 +03:00
parent ab5668cf29
commit 8e8b40e7a2

View File

@ -4013,7 +4013,9 @@ retry:
/* LY: freedb is empty, will look any free txn-id in high2low order. */
do {
--head_gc_id;
mdbx_assert(env, MDBX_PNL_LAST(txn->mt_lifo_reclaimed) > head_gc_id);
mdbx_assert(env,
MDBX_PNL_IS_EMPTY(txn->mt_lifo_reclaimed) ||
MDBX_PNL_LAST(txn->mt_lifo_reclaimed) > head_gc_id);
rc = mdbx_txl_append(&txn->mt_lifo_reclaimed, head_gc_id);
if (unlikely(rc != MDBX_SUCCESS))
goto bailout;