]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/SnapMapper: include poolid in snap index
authorSage Weil <sage@redhat.com>
Wed, 5 Jun 2019 21:53:25 +0000 (16:53 -0500)
committerSage Weil <sage@redhat.com>
Tue, 2 Jul 2019 13:37:49 +0000 (08:37 -0500)
commit84bea65d3e3b4c5bf04591700f8da8e99e7a1bc2
tree66406d8444707dcc6f3a25fd458e6fe470e0d3ca
parent14fdb52c50c018c6580fc0a1115495875ebb1a9e
osd/SnapMapper: include poolid in snap index

We want to sort starting with (pool, snapid, ...) so that we align with
the structure of the purged_snaps.  Simply flattening all snaps across
pools is less than ideal because the purge records are intervals (with the
snap in the key the last snap for the interval); flattening means we'd have
to look at many records (across pools) to conclude anything.  Putting
these in the form we really want them simplifies things going forward.

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