Skip to content

Commit 314e966

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 10df7bd commit 314e966

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
@@ -3089,7 +3089,10 @@ void BufferControl::cache_writer(BufferControl* bcb)
30893089
{
30903090
BufferDesc* const bdb = get_dirty_buffer(tdbb);
30913091
if (bdb)
3092+
{
30923093
write_buffer(tdbb, bdb, bdb->bdb_page, true, &status_vector, true);
3094+
attachment->mergeStats();
3095+
}
30933096
}
30943097

30953098
// 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
@@ -5487,6 +5487,8 @@ void Database::garbage_collector(Database* dbb)
54875487

54885488
CCH_flush(tdbb, FLUSH_SWEEP, 0);
54895489
flush = false;
5490+
5491+
attachment->mergeStats();
54905492
}
54915493

54925494
dbb->dbb_flags &= ~DBB_gc_active;

0 commit comments

Comments
 (0)