From: myoungwon oh Date: Tue, 25 May 2021 07:26:38 +0000 (+0900) Subject: seastore/nvmedevice: use the necessary capture value and fix typo X-Git-Tag: v17.1.0~1638^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=88578e978d1193c9ea54f8641a3e2fe585204c1a;p=ceph.git seastore/nvmedevice: use the necessary capture value and fix typo Signed-off-by: Myoungwon Oh --- diff --git a/src/crimson/os/seastore/nvmedevice/nvmedevice.cc b/src/crimson/os/seastore/nvmedevice/nvmedevice.cc index acbae6bc268f..3d79b41c7110 100644 --- a/src/crimson/os/seastore/nvmedevice/nvmedevice.cc +++ b/src/crimson/os/seastore/nvmedevice/nvmedevice.cc @@ -54,7 +54,7 @@ write_ertr::future<> PosixNVMeDevice::write( [length](auto e) -> write_ertr::future { logger().error("write: dma_write got error{}", e); return crimson::ct_error::input_output_error::make(); - }).then([=](auto result) -> write_ertr::future<> { + }).then([length](auto result) -> write_ertr::future<> { if (result != length) { logger().error("write: dma_write got error with not proper length"); return crimson::ct_error::input_output_error::make(); @@ -78,7 +78,7 @@ read_ertr::future<> PosixNVMeDevice::read( [length](auto e) -> read_ertr::future { logger().error("read: dma_read got error{}", e); return crimson::ct_error::input_output_error::make(); - }).then([=](auto result) -> read_ertr::future<> { + }).then([length](auto result) -> read_ertr::future<> { if (result != length) { logger().error("read: dma_read got error with not proper length"); return crimson::ct_error::input_output_error::make(); @@ -100,7 +100,7 @@ open_ertr::future<> TestMemory::open( } logger().debug( - "Initializing test memory divice {}", + "Initializing test memory device {}", size); void* addr = ::mmap(