]> git.apps.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, 30 Jun 2016 20:33:19 +0000 (13:33 -0700)
commit17f1bffdb891a155532d966b7d3ab4983c9016cf
tree09cfb95b6354516a3d51c1f6eb3a924b662172b9
parent73bc6d11745246df45ea6c4b5fbf9be3b9e91c09
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>
(cherry picked from commit 9ec6e7f608608088d51e449c9d375844631dcdde)
src/osdc/ObjectCacher.cc