]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
scrub/osd: add a missing 'publish stats to osd' 45590/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 23 Jan 2022 06:54:58 +0000 (08:54 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 23 Mar 2022 15:50:29 +0000 (17:50 +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>
(cherry picked from commit ab032e9ac577b32c47528ae32c91b652079288c3)

src/osd/scrubber/pg_scrubber.cc

index 712a3c328f838e39856212cd64e477cbd8f133b7..bd615a97476b3006f3029c0063ad0908774a852c 100644 (file)
@@ -2163,6 +2163,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
@@ -2201,6 +2202,7 @@ void PgScrubber::clear_pgscrub_state()
 
   // type-specific state clear
   _scrub_clear_state();
+  m_pg->publish_stats_to_osd();
 }
 
 void PgScrubber::replica_handling_done()