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:
parent
79cc1f1144
commit
45011a9316
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user