mirror of
https://github.com/isar/libmdbx.git
synced 2025-04-01 02:32:57 +08:00
mdbx: понижение уровня логирования "reserve depleted" при обновлении GC (backport).
This commit is contained in:
parent
ae981c4f9a
commit
cc56710a1d
16
src/core.c
16
src/core.c
@ -10815,10 +10815,10 @@ retry:
|
|||||||
if (unlikely(ctx->rid <= MIN_TXNID)) {
|
if (unlikely(ctx->rid <= MIN_TXNID)) {
|
||||||
if (unlikely(MDBX_PNL_GETSIZE(txn->tw.lifo_reclaimed) <=
|
if (unlikely(MDBX_PNL_GETSIZE(txn->tw.lifo_reclaimed) <=
|
||||||
ctx->reused_slot)) {
|
ctx->reused_slot)) {
|
||||||
NOTICE("** restart: reserve depleted (reused_gc_slot %zu >= "
|
VERBOSE("** restart: reserve depleted (reused_gc_slot %zu >= "
|
||||||
"lifo_reclaimed %zu" PRIaTXN,
|
"lifo_reclaimed %zu" PRIaTXN,
|
||||||
ctx->reused_slot,
|
ctx->reused_slot,
|
||||||
MDBX_PNL_GETSIZE(txn->tw.lifo_reclaimed));
|
MDBX_PNL_GETSIZE(txn->tw.lifo_reclaimed));
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -11053,7 +11053,7 @@ retry:
|
|||||||
tASSERT(txn, ctx->lifo == 0);
|
tASSERT(txn, ctx->lifo == 0);
|
||||||
fill_gc_id = unaligned_peek_u64(4, key.iov_base);
|
fill_gc_id = unaligned_peek_u64(4, key.iov_base);
|
||||||
if (ctx->filled_slot-- == 0 || fill_gc_id > txn->tw.last_reclaimed) {
|
if (ctx->filled_slot-- == 0 || fill_gc_id > txn->tw.last_reclaimed) {
|
||||||
NOTICE(
|
VERBOSE(
|
||||||
"** restart: reserve depleted (filled_slot %zu, fill_id %" PRIaTXN
|
"** restart: reserve depleted (filled_slot %zu, fill_id %" PRIaTXN
|
||||||
" > last_reclaimed %" PRIaTXN,
|
" > last_reclaimed %" PRIaTXN,
|
||||||
ctx->filled_slot, fill_gc_id, txn->tw.last_reclaimed);
|
ctx->filled_slot, fill_gc_id, txn->tw.last_reclaimed);
|
||||||
@ -11062,9 +11062,9 @@ retry:
|
|||||||
} else {
|
} else {
|
||||||
tASSERT(txn, ctx->lifo != 0);
|
tASSERT(txn, ctx->lifo != 0);
|
||||||
if (++ctx->filled_slot > MDBX_PNL_GETSIZE(txn->tw.lifo_reclaimed)) {
|
if (++ctx->filled_slot > MDBX_PNL_GETSIZE(txn->tw.lifo_reclaimed)) {
|
||||||
NOTICE("** restart: reserve depleted (filled_gc_slot %zu > "
|
VERBOSE("** restart: reserve depleted (filled_gc_slot %zu > "
|
||||||
"lifo_reclaimed %zu" PRIaTXN,
|
"lifo_reclaimed %zu" PRIaTXN,
|
||||||
ctx->filled_slot, MDBX_PNL_GETSIZE(txn->tw.lifo_reclaimed));
|
ctx->filled_slot, MDBX_PNL_GETSIZE(txn->tw.lifo_reclaimed));
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
fill_gc_id = txn->tw.lifo_reclaimed[ctx->filled_slot];
|
fill_gc_id = txn->tw.lifo_reclaimed[ctx->filled_slot];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user