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
…8392)

Co-authored-by: Artyom Abakumov <[email protected]>
  • Loading branch information
2 people authored and dyemanov committed Jan 20, 2025
1 parent 10df7bd commit 314e966
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 @@ -3089,7 +3089,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 @@ -5487,6 +5487,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 314e966

Please sign in to comment.