]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: destruct the scrubber shortly before the PG is destructed 45731/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 26 Aug 2021 12:30:38 +0000 (12:30 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 31 Mar 2022 11:01:08 +0000 (11:01 +0000)
commite3bc89028955c060a0157ecf1c87ce87903d1b20
treee312cff830292b4be949830d8347ca0983824876
parentf5e8c20edf1fd6ce9fe4d0f2c8790aa6d1433460
osd/scrub: destruct the scrubber shortly before the PG is destructed

By destructing the scrubber when the PG is still intact, we guarantee that
Scrubber's code can refer to the PG object - especially in dout()s.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit bcd13e134c1f335506e425800170d55cd8a2af1b)
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h