]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: keep snapset on whiteout head if luminous
authorSage Weil <sage@redhat.com>
Mon, 20 Feb 2017 23:23:12 +0000 (17:23 -0600)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 17:38:11 +0000 (13:38 -0400)
commit2640101e9ae6d70fa36fca2764a147aac8b67aed
tree89a241a459473f45eec806396d65c50a92b0ed8a
parent10f8615e8fb27c301c2bb7b22a9fb66fdfba8848
osd/PrimaryLogPG: keep snapset on whiteout head if luminous

If REQUIRE_LUMINOUS is set on the OSDMap, put the SnapSet on the head
and make it a whiteout.  This is simpler and will eventually (once all
the old snapdir objects have been fixed up) let us remove a ton of
snapdir-related headaches.

This is surprisingly simple.  Everywhere else we work with snapdir is
already set up to handle the snapset on the head.  The only difference is
that we are preventing outselves from moving from the snapset-on-head
state to the snapset-on-snapdir-with-no-head state.  The only time this
happens is when the object is logically deleted in _delete_oid.

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