From: Sage Weil Date: Fri, 13 Oct 2017 21:52:00 +0000 (-0500) Subject: osd/osd_types: note about removed_snaps hack X-Git-Tag: v13.0.2~844^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c536d4c294ec1f1c8cac6ca44675d25cb361e4f2;p=ceph.git osd/osd_types: note about removed_snaps hack We add in the new snap_seq just to try to keep the interval_set contiguous. Signed-off-by: Sage Weil --- diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index 6b9414115dcd..8585f6810981 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -1359,6 +1359,7 @@ void pg_pool_t::remove_unmanaged_snap(snapid_t s) assert(is_unmanaged_snaps_mode()); removed_snaps.insert(s); snap_seq = snap_seq + 1; + // add in the new seq, just to try to keep the interval_set contiguous removed_snaps.insert(get_snap_seq()); }