From 5f7252b32b4ec7acdea0c5df213586dd9ccf2309 Mon Sep 17 00:00:00 2001 From: arvidn Date: Thu, 2 Aug 2018 11:13:08 +0200 Subject: [PATCH] add missing increment of on_disk_counter and num_blocks_hashed counters --- src/disk_io_thread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index 4f9f8e0a0..79381e378 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -2297,6 +2297,7 @@ constexpr disk_job_flags_t disk_interface::cache_hit; { std::int64_t const read_time = total_microseconds(clock_type::now() - start_time); + m_stats_counters.inc_stats_counter(counters::num_blocks_hashed, blocks_left); m_stats_counters.inc_stats_counter(counters::num_read_back, blocks_left); m_stats_counters.inc_stats_counter(counters::num_blocks_read, blocks_left); m_stats_counters.inc_stats_counter(counters::num_read_ops); @@ -3412,6 +3413,7 @@ constexpr disk_job_flags_t disk_interface::cache_hit; // This is run in the network thread void disk_io_thread::call_job_handlers() { + m_stats_counters.inc_stats_counter(counters::on_disk_counter); std::unique_lock l(m_completed_jobs_mutex); DLOG("call_job_handlers (%d)\n", m_completed_jobs.size());