Skip to content

Commit 45011a9

Browse files
NoremosArtyom Abakumov
authored andcommitted
Add missing mergeStats in garbage collector and cache writer threads (#8392)
Co-authored-by: Artyom Abakumov <[email protected]>
1 parent 79cc1f1 commit 45011a9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/jrd/cch.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3030,7 +3030,10 @@ void BufferControl::cache_writer(BufferControl* bcb)
30303030
{
30313031
BufferDesc* const bdb = get_buffer(tdbb, FREE_PAGE, SYNC_NONE, 1);
30323032
if (bdb)
3033+
{
30333034
write_buffer(tdbb, bdb, bdb->bdb_page, true, &status_vector, true);
3035+
attachment->mergeStats();
3036+
}
30343037
}
30353038

30363039
// If there's more work to do voluntarily ask to be rescheduled.

src/jrd/vio.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5012,6 +5012,8 @@ void Database::garbage_collector(Database* dbb)
50125012

50135013
CCH_flush(tdbb, FLUSH_SWEEP, 0);
50145014
flush = false;
5015+
5016+
attachment->mergeStats();
50155017
}
50165018

50175019
dbb->dbb_flags &= ~DBB_gc_active;

0 commit comments

Comments
 (0)