]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: use get_object_context in trim_object 1058/head
authorSage Weil <sage@inktank.com>
Mon, 13 Jan 2014 23:09:27 +0000 (15:09 -0800)
committerSage Weil <sage@inktank.com>
Tue, 14 Jan 2014 00:19:50 +0000 (16:19 -0800)
commitbe8db8c3380b9d09e7165691f7a56ec67a9bf56c
tree21bed7c0be18c2d400a230669392d0a1c7808c65
parentb5ae76e8fe64f0ec76524c2852ae04c42db6efaf
osd/ReplicatedPG: use get_object_context in trim_object

find_object_context() has all the logic to choose a particular clone given
a logical snap.  In the trim case, we want none of that: we just need to
pull the obc for a specific clone instance.  Note that this changes
none of the failure cases (previous we asserted r == 0).

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