From: Ronen Friedman Date: Sun, 23 Jan 2022 06:54:58 +0000 (+0200) Subject: scrub/osd: add a missing 'publish stats to osd' X-Git-Tag: v18.0.0~1514^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ab032e9ac577b32c47528ae32c91b652079288c3;p=ceph.git 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 --- diff --git a/src/osd/scrubber/pg_scrubber.cc b/src/osd/scrubber/pg_scrubber.cc index 7966b0d1cc7d..cb610a92bd1e 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()