]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/SnapMirror: no need to record purged_snaps every epoch
authorSage Weil <sage@redhat.com>
Mon, 25 Nov 2019 19:31:26 +0000 (13:31 -0600)
committerSage Weil <sage@redhat.com>
Mon, 25 Nov 2019 19:31:30 +0000 (13:31 -0600)
commitf2763fca96c7976a9d72b405d32e32078c3d5cce
tree6176839b2c3f4f1829c350f9f2be16476613fa2a
parent67c96be4f6fca0ff48e8d152452d9ddb8fc8a042
osd/SnapMirror: no need to record purged_snaps every epoch

These keys were a mirror of the mon's purged_epoch keys.  We were writing
them, but never looking at them.  We only need the per-pool keys that
are indexed by snapid for lookups, so we should stop storing the per-epoch
records.

Note that the OSDSuperblock has the purged_snaps_last that serves as our
position/cursor for ingesting the mon keys.

Fixes: https://tracker.ceph.com/issues/42012
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/SnapMapper.cc