]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: make on_replica_init() idempotent again 48190/head
authorRonen Friedman <rfriedma@redhat.com>
Tue, 20 Sep 2022 07:02:51 +0000 (07:02 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 20 Sep 2022 14:48:30 +0000 (14:48 +0000)
commitf35ca81c8964899012526e00b04ffc4948d758d1
treec062f32193a94e68c84e0df2d9ca5de1444b733d
parentad87f822bd0940a4de3b43820f1e6a850ed8b701
osd/scrub: make on_replica_init() idempotent again

on_replica_init() might be called twice during replica scrub
initiation. Thus, it was designed to cause no issue if called
an extra time. That was broken when the scrubber-backend code
was introduced.

Fixes: https://tracker.ceph.com/issues/57616
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/pg_scrubber.cc