]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: improve SnapMapper's API used by the scrubber
authorRonen Friedman <rfriedma@redhat.com>
Sun, 24 Jul 2022 13:25:55 +0000 (13:25 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 29 Jun 2023 12:01:06 +0000 (07:01 -0500)
commitf46fec6e79c7fb237ec632cf6301e121c893f76f
treeac9f489565fbdc787754c9789cc3fe2f9b483f3f
parent8f72bea2173e1ffd2a0257978c4c21c9f9eb5297
osd/scrub: improve SnapMapper's API used by the scrubber

By:
- defining the interface;
- avoiding 'out' parameters where possible
- (forced to) improved const correctness

(cherry picked from commit d9a1b54e1990558c7e2ec55ba1df8571aa6b4dbe)

Conflicts:
  - important changes to scrub_backend.{h,cc} had to be copied manually
    into pre-backend-refactoring files;
  - removed the irrelevant test file

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/SnapMapReaderI.h [new file with mode: 0644]
src/osd/SnapMapper.cc
src/osd/SnapMapper.h