]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: fix bug in try_prune_purged_snaps
authorSage Weil <sage@redhat.com>
Fri, 21 Jun 2019 02:54:09 +0000 (21:54 -0500)
committerSage Weil <sage@redhat.com>
Tue, 2 Jul 2019 13:37:51 +0000 (08:37 -0500)
commit6b26fcd1bdd8910cb2dbd84fe342cd65be2a70ec
tree26441a474026eca5de9e3db7a613281922da2140
parentd831abeae1688a18eb446dd1a63eb6ed94f45d81
mon/OSDMonitor: fix bug in try_prune_purged_snaps

If 'begin' isn't found, we'll get a [pbegin,pend) range back that was
nearby.  Only if it overlaps the [begin,end) range do we want to shorten
our range to [begin,pbegin); the old assert was making the assumption
that the lookup would only return a range that was after 'begin', but in
reality it can return was that comes before it too.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc