]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore:fix bug in aio_read() 13511/head
authortangwenjun3 <tang.wenjun3@zte.com.cn>
Sat, 18 Feb 2017 03:07:19 +0000 (11:07 +0800)
committertangwenjun <tang.wenjun3@zte.com.cn>
Sat, 18 Feb 2017 05:49:22 +0000 (13:49 +0800)
fixed compilation issue  in aio_read() when enable spdk

Signed-off-by: tangwenjun <tang.wenjun3@zte.com.cn>
src/os/bluestore/NVMEDevice.cc

index 13011580d05dc940299d92d2911b6fb812bd38ba..de7c6e4c6fd66d2b56fb3266d421d088f961ab66 100644 (file)
@@ -947,7 +947,6 @@ int NVMEDevice::aio_read(
     bufferlist *pbl,
     IOContext *ioc)
 {
-  uint64_t len = bl.length();
   dout(20) << __func__ << " " << off << "~" << len << " ioc " << ioc << dendl;
   assert(off % block_size == 0);
   assert(len % block_size == 0);