]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix _do_read cached vs read result assembly
authorSage Weil <sage@redhat.com>
Mon, 23 May 2016 19:00:37 +0000 (15:00 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:40:47 +0000 (11:40 -0400)
commit53b699edda2918435bde6d0f61f6bb28b9483e3b
tree09990c26f1bd9997d1e3b1aa114afabfeaf78add
parentd315a21be967d5eb960ec3e2cc774905103afd8f
os/bluestore: fix _do_read cached vs read result assembly

We weren't handling the case of

 read block 0~300
 cache bloc 100~100

where the result is read(head) + cached + read(tail). Restructure the
loop to handle this.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc