mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 20:14:14 +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;
|
goto bailout;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = mdbx_prep_backlog(txn, &couple.outer,
|
if (retired_stored < MDBX_PNL_SIZE(txn->tw.retired_pages)) {
|
||||||
MDBX_PNL_SIZEOF(txn->tw.retired_pages));
|
rc = mdbx_prep_backlog(txn, &couple.outer,
|
||||||
if (unlikely(rc != MDBX_SUCCESS))
|
MDBX_PNL_SIZEOF(txn->tw.retired_pages));
|
||||||
goto bailout;
|
if (unlikely(rc != MDBX_SUCCESS))
|
||||||
|
goto bailout;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned settled = 0, cleaned_gc_slot = 0, reused_gc_slot = 0,
|
unsigned settled = 0, cleaned_gc_slot = 0, reused_gc_slot = 0,
|
||||||
filled_gc_slot = ~0u;
|
filled_gc_slot = ~0u;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user