]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: separate shallow vs deep errors storage
authorRonen Friedman <rfriedma@redhat.com>
Tue, 24 Sep 2024 04:09:51 +0000 (23:09 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 10 Oct 2024 16:29:20 +0000 (11:29 -0500)
commitdaf848fa5afcf4ad86388eade472d2c3a4873826
tree3cd275e1b6abaa8939c013a5df1f82ad3d270786
parent031580fb662f35daacf61a8aa2a4b4f3b32b7b6b
osd/scrub: separate shallow vs deep errors storage

The ScrubStore now holds two ScrubStore::at_level_t objects,
one for the shallow errors and one for the deep errors.

The shallow errors DB is recreated at the start of every scrub,
while the deep errors DB is only recreated at the start of a
deep scrub.

When queried by the operator for known scrub errors, the
ScrubStore will return the union of the errors from both
DBs.

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