]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: directly create or reinit the ScrubStore
authorRonen Friedman <rfriedma@redhat.com>
Mon, 23 Sep 2024 08:58:59 +0000 (03:58 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 10 Oct 2024 16:29:20 +0000 (11:29 -0500)
commit571e2f3c193fc0d117cfd577fe90798fc75e98fa
tree71044ac2289f63e9aec12946e2956f5bd9068eeb
parent38d9cf4ca760c667d105435a714f76dbff926960
osd/scrub: directly create or reinit the ScrubStore

The ScrubStore is now directly created or reinitialized by the
Scrubber. Note that the store object is not identical to the
errors DB: the errors DB is an entity in the OSD store (a
collection of OMap entries in a uniquely-named object(s)),
while the ScrubSTore object is a cacher and accessor for
that entity. That one can be recreated or disposed of at
will.

We now do not recreate the ScrubStore object for every scrub.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/ScrubStore.cc
src/osd/scrubber/ScrubStore.h
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/pg_scrubber.h