]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: only call publish_stats_to_osd() where allowed and needed
authorRonen Friedman <rfriedma@redhat.com>
Sat, 11 Feb 2023 19:16:32 +0000 (21:16 +0200)
committerLaura Flores <lflores@redhat.com>
Thu, 9 Mar 2023 21:10:25 +0000 (21:10 +0000)
commit9060dd7d0ea2e8cd94bbe90535aa3dc19857a3ac
treea4cbff7d00f0d02807f5bc932a7fbaedaa6d9852
parent2e3277ab92cc5653a733c0ed1018859a56fb6117
osd/scrub: only call publish_stats_to_osd() where allowed and needed

This patch removes several unnecessary calls to publish_stats_to_osd() in
the clear_pgscrub_state pathway used during interval changes. We didn't
actually have anything to publish and we can't validly call publish_stats_to_osd()
when we aren't an active primary anyway (which we can't be during an interval
change).

Fixes: https://tracker.ceph.com/issues/58496
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit aeff19db99ab53fbaec7eb530e35d578e6254e4c)
src/osd/scrubber/pg_scrubber.cc