]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
scrub/osd: add a missing 'publish stats to osd'
authorRonen Friedman <rfriedma@redhat.com>
Sun, 23 Jan 2022 06:54:58 +0000 (08:54 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 23 Jan 2022 06:54:58 +0000 (08:54 +0200)
to publish the last scrub status report.
The change is needed following the merge of
PR #42735.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/pg_scrubber.cc

index 7966b0d1cc7ded289bdfe713a75a8a6982011314..cb610a92bd1e9d0b80155981e2f7bf7f4f0e8b3f 100644 (file)
@@ -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()