Skip to content

Commit 121c542

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 0c3bbd8 commit 121c542

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
@@ -3023,7 +3023,10 @@ void BufferControl::cache_writer(BufferControl* bcb)
30233023
{
30243024
BufferDesc* const bdb = get_buffer(tdbb, FREE_PAGE, SYNC_NONE, 1);
30253025
if (bdb)
3026+
{
30263027
write_buffer(tdbb, bdb, bdb->bdb_page, true, &status_vector, true);
3028+
attachment->mergeStats();
3029+
}
30273030
}
30283031

30293032
// 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
@@ -5080,6 +5080,8 @@ void Database::garbage_collector(Database* dbb)
50805080

50815081
CCH_flush(tdbb, FLUSH_SWEEP, 0);
50825082
flush = false;
5083+
5084+
attachment->mergeStats();
50835085
}
50845086

50855087
dbb->dbb_flags &= ~DBB_gc_active;

0 commit comments

Comments
 (0)