]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: implement scrub_purged_snaps command
authorSage Weil <sage@redhat.com>
Mon, 10 Jun 2019 22:31:54 +0000 (17:31 -0500)
committerSage Weil <sage@redhat.com>
Tue, 2 Jul 2019 13:37:51 +0000 (08:37 -0500)
commit6192fb60313d42761a2ff59d2dee5581a68d6139
tree9e55e993dd56f44355b1071d8a12d61e3a2dfd94
parent7628474723489d9bb5ef97e35a2e102a8ae04d63
osd: implement scrub_purged_snaps command

This a naive one-shot implementation that does the full scan synchronously
in the command thread.  It shouldn't block any IO except to the extent
that it will compete for IO reading the underlying snapmapper omap object.

When we discover mapped objects that are covered by ranges of snaps that
should be purged, we requeue the snapid for trim on the relevant PG(s).
For these 'repeat' trims we skip the final step(s) to mark the snapid as
purged, since that presumably already happened some time ago.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/PrimaryLogPG.cc
src/osd/SnapMapper.cc
src/osd/SnapMapper.h