]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ObjectCacher: fix bh_read_finish offset logic
authorGreg Farnum <gfarnum@redhat.com>
Mon, 23 May 2016 22:14:21 +0000 (15:14 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Thu, 23 Jun 2016 21:24:06 +0000 (14:24 -0700)
commit9ec6e7f608608088d51e449c9d375844631dcdde
treeedd4fc71732169c2f078958c4edb9ab148e474ac
parenta555d9a0c7d3b6c2206520cf78445234b0834639
ObjectCacher: fix bh_read_finish offset logic

If we have an incoming read split across multiple BufferHeads, we want to
line up the BufferHead's bl with the incoming OSDOp's bl at the right offset. We
were erroneously using this nonsense calculation (always equal to zero!) when
a much simpler comparison of the BufferHead's logical object offset to the
incoming OSDOp's logical offset will do the trick nicely.

Fixes: http://tracker.ceph.com/issues/16002
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/osdc/ObjectCacher.cc