8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Add missing mergeStats in garbage collector and cache writer threads (#8392)

Co-authored-by: Artyom Abakumov <artyom.abakumov@red-soft.ru>
This commit is contained in:
Artyom Abakumov 2025-01-20 11:40:55 +03:00 committed by Dmitry Yemanov
parent 79cc1f1144
commit 45011a9316
2 changed files with 5 additions and 0 deletions

View File

@ -3030,7 +3030,10 @@ void BufferControl::cache_writer(BufferControl* bcb)
{
BufferDesc* const bdb = get_buffer(tdbb, FREE_PAGE, SYNC_NONE, 1);
if (bdb)
{
write_buffer(tdbb, bdb, bdb->bdb_page, true, &status_vector, true);
attachment->mergeStats();
}
}
// If there's more work to do voluntarily ask to be rescheduled.

View File

@ -5012,6 +5012,8 @@ void Database::garbage_collector(Database* dbb)
CCH_flush(tdbb, FLUSH_SWEEP, 0);
flush = false;
attachment->mergeStats();
}
dbb->dbb_flags &= ~DBB_gc_active;