mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16: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:
parent
b09e0aa54b
commit
9791f8dcb5
@ -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.
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user