mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 04:14:13 +08:00
mdbx: don't reserve/backlog free-pages if retired-list was already put into gc.
This commit is contained in:
parent
c3c088b8c3
commit
b30ccbde9e
10
src/core.c
10
src/core.c
@ -8768,10 +8768,12 @@ retry_noaccount:
|
||||
goto bailout;
|
||||
}
|
||||
|
||||
rc = mdbx_prep_backlog(txn, &couple.outer,
|
||||
MDBX_PNL_SIZEOF(txn->tw.retired_pages));
|
||||
if (unlikely(rc != MDBX_SUCCESS))
|
||||
goto bailout;
|
||||
if (retired_stored < MDBX_PNL_SIZE(txn->tw.retired_pages)) {
|
||||
rc = mdbx_prep_backlog(txn, &couple.outer,
|
||||
MDBX_PNL_SIZEOF(txn->tw.retired_pages));
|
||||
if (unlikely(rc != MDBX_SUCCESS))
|
||||
goto bailout;
|
||||
}
|
||||
|
||||
unsigned settled = 0, cleaned_gc_slot = 0, reused_gc_slot = 0,
|
||||
filled_gc_slot = ~0u;
|
||||
|
Loading…
x
Reference in New Issue
Block a user