]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: only call publish_stats_to_osd() where allowed and needed 50283/head
authorRonen Friedman <rfriedma@redhat.com>
Sat, 11 Feb 2023 19:16:32 +0000 (21:16 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 27 Feb 2023 13:43:37 +0000 (15:43 +0200)
commitaeff19db99ab53fbaec7eb530e35d578e6254e4c
treef1290692f59fd109d985209e3574590ee81a974a
parent8d57d557387d6391b3e6979d6bed0d728ed8d312
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>
src/osd/scrubber/pg_scrubber.cc