From ab032e9ac577b32c47528ae32c91b652079288c3 Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Sun, 23 Jan 2022 08:54:58 +0200 Subject: [PATCH] scrub/osd: add a missing 'publish stats to osd' to publish the last scrub status report. The change is needed following the merge of PR #42735. Signed-off-by: Ronen Friedman --- src/osd/scrubber/pg_scrubber.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/scrubber/pg_scrubber.cc b/src/osd/scrubber/pg_scrubber.cc index 7966b0d1cc7..cb610a92bd1 100644 --- a/src/osd/scrubber/pg_scrubber.cc +++ b/src/osd/scrubber/pg_scrubber.cc @@ -2162,6 +2162,7 @@ void PgScrubber::cleanup_on_finish() requeue_waiting(); reset_internal_state(); + m_pg->publish_stats_to_osd(); m_flags = scrub_flags_t{}; // type-specific state clear @@ -2200,6 +2201,7 @@ void PgScrubber::clear_pgscrub_state() // type-specific state clear _scrub_clear_state(); + m_pg->publish_stats_to_osd(); } void PgScrubber::replica_handling_done() -- 2.39.5