mirror of
https://github.com/isar/libmdbx.git
synced 2025-02-01 03:48:20 +08:00
mdbx: fix update_gc() assertion.
Change-Id: I433382de0ddab41ad1530ee674ed22f9003c2779
This commit is contained in:
parent
ab5668cf29
commit
8e8b40e7a2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user