Skip to content

Commit

Permalink
Add missing mergeStats in garbage collector and cache writer threads
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Abakumov committed Jan 16, 2025
1 parent a0aa292 commit a36f604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jrd/cch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3079,7 +3079,10 @@ void BufferControl::cache_writer(BufferControl* bcb)
{
BufferDesc* const bdb = get_dirty_buffer(tdbb);
if (bdb)
{
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.
Expand Down
2 changes: 2 additions & 0 deletions src/jrd/vio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5497,6 +5497,8 @@ void Database::garbage_collector(Database* dbb)

CCH_flush(tdbb, FLUSH_SWEEP, 0);
flush = false;

attachment->mergeStats();
}

dbb->dbb_flags &= ~DBB_gc_active;
Expand Down

0 comments on commit a36f604

Please sign in to comment.