]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: only clear SnapSet::head_exists for legacy snapsets
authorSage Weil <sage@redhat.com>
Fri, 7 Apr 2017 17:27:38 +0000 (13:27 -0400)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 17:38:12 +0000 (13:38 -0400)
commit376015fd9e8a5b33edbe657df1df23334c386473
treecc2b01d7636ddf548a7fee58d4713b254339ef1f
parentf063506b211b35e935344c43e27f2cc38bb2498f
osd/PrimaryLogPG: only clear SnapSet::head_exists for legacy snapsets

In the new world, head_exists is always true.  Stop clearing it in
_delete_oid (except for legacy compatibility), and fix the various callers
and assertions to compensate.  Note that we now use head_exists as a flag
to guide us into the snapdir branch of finish_ctx() (which will go away
post-luminous).

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