8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 14:43:03 +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 GitHub
parent b09e0aa54b
commit 9791f8dcb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -3079,7 +3079,10 @@ void BufferControl::cache_writer(BufferControl* bcb)
{ {
BufferDesc* const bdb = get_dirty_buffer(tdbb); BufferDesc* const bdb = get_dirty_buffer(tdbb);
if (bdb) if (bdb)
{
write_buffer(tdbb, bdb, bdb->bdb_page, true, &status_vector, true); 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. // If there's more work to do voluntarily ask to be rescheduled.

View File

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