]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: set FLAG_SELFMANAGED_SNAPS on cephfs snap removal 21756/head
authorSage Weil <sage@redhat.com>
Tue, 1 May 2018 17:51:55 +0000 (12:51 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 May 2018 18:46:47 +0000 (13:46 -0500)
commit1124839204e5a694d33e6315aee58f75113401c5
treec6ad542efe16c2cf5096d298b0e8a0eca201c96a
parent6024c5c52cf78b017ff6406b61ec295ad5597750
mon/OSDMonitor: set FLAG_SELFMANAGED_SNAPS on cephfs snap removal

CephFS uses a different path to remove selfmanaged snaps than librados,
so while the librados path goes through pg_pool_t::remove_unmanaged_snap(),
we open code the snap addition to the pool's removed_snaps here.  If we
don't set FLAG_SELFMANAGED_SNAPS at that time, we will implicitly set it
during decode and get a CRC mismatch.

Fix by explicitly setting FLAG_SELFMANAGED_SNAPS flag here.

Fixes: http://tracker.ceph.com/issues/23949
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc