]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: only use tail if tail_offset matches
authorSage Weil <sage@redhat.com>
Thu, 17 Mar 2016 21:41:56 +0000 (17:41 -0400)
committerSage Weil <sage@redhat.com>
Wed, 30 Mar 2016 15:23:14 +0000 (11:23 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index ca1f93d352016926b65cb509ca3b3584cb1bcd26..8af1c6a754718b8fe132006d198ab814c3bea582 100644 (file)
@@ -5466,6 +5466,7 @@ int BlueStore::_do_write(
     if (offset >= bp->first &&
        offset > tail_start &&
        offset + length >= o->onode.size &&
+       o->tail_offset == tail_start &&
        o->tail_bl.length() &&
        (offset / block_size == (o->onode.size - 1) / block_size)) {
       dout(20) << __func__ << " using cached tail" << dendl;