From: Sage Weil Date: Thu, 17 Mar 2016 21:41:56 +0000 (-0400) Subject: os/bluestore: only use tail if tail_offset matches X-Git-Tag: v10.1.1~28^2~27 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5a2b36f1e2cccb1d452a20659114ccdbf77b1536;p=ceph.git os/bluestore: only use tail if tail_offset matches Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index ca1f93d35201..8af1c6a75471 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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;