From a36f6049b9c95d0427a3bae908ac51f005798ce4 Mon Sep 17 00:00:00 2001 From: Artyom Abakumov Date: Thu, 16 Jan 2025 09:39:12 +0300 Subject: [PATCH] Add missing mergeStats in garbage collector and cache writer threads --- src/jrd/cch.cpp | 3 +++ src/jrd/vio.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/jrd/cch.cpp b/src/jrd/cch.cpp index 6f097e8e542..e909f7f0c8f 100644 --- a/src/jrd/cch.cpp +++ b/src/jrd/cch.cpp @@ -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. diff --git a/src/jrd/vio.cpp b/src/jrd/vio.cpp index 3d23566bbcb..8433d0d9243 100644 --- a/src/jrd/vio.cpp +++ b/src/jrd/vio.cpp @@ -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;