]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG::do_op: use get_object_context for list-snaps 1615/head
authorSamuel Just <sam.just@inktank.com>
Thu, 3 Apr 2014 19:52:38 +0000 (12:52 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 3 Apr 2014 19:53:51 +0000 (12:53 -0700)
commita11b3e8d63ddff7229e927c16dbffb03ba602f11
treebd064eea55403cc7fbd108be60ba9abefe34b1cf
parent78e9813c41336aa96150f92cc046e969549890b3
ReplicatedPG::do_op: use get_object_context for list-snaps

find_object_context provides some niceties which we don't need since we know
the oid of the clones.  Problematically, it also return ENOENT if the snap
requested happens to have been removed.  Even in such a case, the clone may
well still exist for other snaps.  Rather than modify find_object_context to
avoid this situation for this caller, we'll simply do it inline in do_op.

Fixes: #7858
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc