Skip to content

Commit 9791f8d

Browse files
NoremosArtyom Abakumov
andauthored
Add missing mergeStats in garbage collector and cache writer threads (#8392)
Co-authored-by: Artyom Abakumov <[email protected]>
1 parent b09e0aa commit 9791f8d

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
@@ -3079,7 +3079,10 @@ void BufferControl::cache_writer(BufferControl* bcb)
30793079
{
30803080
BufferDesc* const bdb = get_dirty_buffer(tdbb);
30813081
if (bdb)
3082+
{
30823083
write_buffer(tdbb, bdb, bdb->bdb_page, true, &status_vector, true);
3084+
attachment->mergeStats();
3085+
}
30833086
}
30843087

30853088
// 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
@@ -5497,6 +5497,8 @@ void Database::garbage_collector(Database* dbb)
54975497

54985498
CCH_flush(tdbb, FLUSH_SWEEP, 0);
54995499
flush = false;
5500+
5501+
attachment->mergeStats();
55005502
}
55015503

55025504
dbb->dbb_flags &= ~DBB_gc_active;

0 commit comments

Comments
 (0)