]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: record purged_snaps when we store new maps
authorSage Weil <sage@redhat.com>
Mon, 10 Jun 2019 15:12:04 +0000 (10:12 -0500)
committerSage Weil <sage@redhat.com>
Tue, 2 Jul 2019 13:37:50 +0000 (08:37 -0500)
commit87b539c2b65c80a105e1c374ff88cb69b571686f
tree4c05472c3da21f54fe1d2782f3326c8e97a125a3
parent7315d3fdba0ab917fc2b01d1d7ae99220fcbcf43
osd: record purged_snaps when we store new maps

When we get a new map, record the (new) purged_snaps.

Only do this if the OSD has purged_snaps that are in sync with the latest
OSDMap.  That means that after an upgrade, if the OSD didn't sync the
old purged_snaps on startup, it won't sync anything until it *next* starts
up.

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